lib/obscure.c: Mark parameter as [[maybe_unused]]
It's only used in certain builds. This is to silence a -Wunused-parameter warning. Signed-off-by: Alejandro Colomar <alx@kernel.org>
This commit is contained in:
committed by
Iker Pedrosa
parent
5ba6cd8545
commit
82484117b3
+1
-1
@@ -88,7 +88,7 @@ static char *str_lower (/*@returned@*/char *string)
|
||||
static /*@observer@*//*@null@*/const char *password_check (
|
||||
/*@notnull@*/const char *old,
|
||||
/*@notnull@*/const char *new,
|
||||
/*@notnull@*/const struct passwd *pwdp)
|
||||
/*@notnull@*/unused const struct passwd *pwdp)
|
||||
{
|
||||
const char *msg = NULL;
|
||||
char *oldmono, *newmono, *wrapped;
|
||||
|
||||
Reference in New Issue
Block a user