From: Alejandro Colomar Date: Sat, 2 Sep 2023 13:50:43 +0000 (+0200) Subject: lib/obscure.c: Mark parameter as [[maybe_unused]] X-Git-Tag: 4.15.0-rc1~99 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=82484117b34f44b6930a15b694f1db6c34aacd00;p=thirdparty%2Fshadow.git 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 --- diff --git a/lib/obscure.c b/lib/obscure.c index cfc273587..21e20031a 100644 --- a/lib/obscure.c +++ b/lib/obscure.c @@ -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;