From 194014678e13dfcd9e418f76fec5ae701b507d54 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Christian=20G=C3=B6ttsche?= Date: Tue, 24 Jan 2023 16:50:49 +0100 Subject: [PATCH] Declare constant data structure const MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ./lib/pam_defs.h:18:24: warning: ‘conv’ defined but not used [-Wunused-variable] 18 | static struct pam_conv conv = { | ^~~~ --- lib/pam_defs.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/pam_defs.h b/lib/pam_defs.h index 2dcda3cd..dd016e5c 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 };