From 82484117b34f44b6930a15b694f1db6c34aacd00 Mon Sep 17 00:00:00 2001 From: Alejandro Colomar Date: Sat, 2 Sep 2023 15:50:43 +0200 Subject: [PATCH] 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 --- lib/obscure.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/obscure.c b/lib/obscure.c index cfc27358..21e20031 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;