From: Christian Göttsche Date: Tue, 24 Jan 2023 15:50:49 +0000 (+0100) Subject: Declare constant data structure const X-Git-Tag: 4.14.0-rc1~221 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=194014678e13dfcd9e418f76fec5ae701b507d54;p=thirdparty%2Fshadow.git Declare constant data structure const ./lib/pam_defs.h:18:24: warning: ‘conv’ defined but not used [-Wunused-variable] 18 | static struct pam_conv conv = { | ^~~~ --- diff --git a/lib/pam_defs.h b/lib/pam_defs.h index 2dcda3cd4..dd016e5cc 100644 --- a/lib/pam_defs.h +++ b/lib/pam_defs.h @@ -15,7 +15,7 @@ #endif -static struct pam_conv conv = { +static const struct pam_conv conv = { SHADOW_PAM_CONVERSATION, NULL };