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:
Alejandro Colomar
2023-09-02 15:50:43 +02:00
committed by Iker Pedrosa
parent 5ba6cd8545
commit 82484117b3
+1 -1
View File
@@ -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;