]> git.ipfire.org Git - thirdparty/shadow.git/commitdiff
lib/obscure.c: Mark parameter as [[maybe_unused]]
authorAlejandro Colomar <alx@kernel.org>
Sat, 2 Sep 2023 13:50:43 +0000 (15:50 +0200)
committerIker Pedrosa <ikerpedrosam@gmail.com>
Mon, 4 Dec 2023 10:45:09 +0000 (11:45 +0100)
It's only used in certain builds.  This is to silence a -Wunused-parameter warning.

Signed-off-by: Alejandro Colomar <alx@kernel.org>
lib/obscure.c

index cfc2735873c2fa40198c82f94d2850f933bc442c..21e20031a435c0c98b22e98bb3d4bbdac7b9d790 100644 (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;