From a69ce93bb8a47b97214f15c31451b5c8c8cd9d84 Mon Sep 17 00:00:00 2001 From: Alexey Tikhonov Date: Tue, 22 Aug 2023 12:58:34 +0200 Subject: [PATCH] =?UTF-8?q?Fix=20compilation=20warning=20```=20=20=20../sr?= =?UTF-8?q?c/responder/pam/pamsrv=5Fcmd.c:=20In=20function=20=E2=80=98pam?= =?UTF-8?q?=5Freply=E2=80=99:=20=20=20../src/responder/pam/pamsrv=5Fcmd.c:?= =?UTF-8?q?1188:10:=20warning:=20unused=20variable=20=E2=80=98pk=5Fpreauth?= =?UTF-8?q?=5Fdone=E2=80=99=20[-Wunused-variable]=20=20=20=201188=20|=20?= =?UTF-8?q?=20=20=20=20bool=20pk=5Fpreauth=5Fdone=20=3D=20false;=20```=20i?= =?UTF-8?q?n=20case=20SSSD=20is=20built=20without=20'passkey'=20support.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/responder/pam/pamsrv_cmd.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/responder/pam/pamsrv_cmd.c b/src/responder/pam/pamsrv_cmd.c index eed283f4e9d..80ba76b32cb 100644 --- a/src/responder/pam/pamsrv_cmd.c +++ b/src/responder/pam/pamsrv_cmd.c @@ -1185,9 +1185,11 @@ void pam_reply(struct pam_auth_req *preq) char* pam_account_expired_message; char* pam_account_locked_message; int pam_verbosity; - bool pk_preauth_done = false; bool local_sc_auth_allow = false; bool local_passkey_auth_allow = false; +#ifdef BUILD_PASSKEY + bool pk_preauth_done = false; +#endif /* BUILD_PASSKEY */ pd = preq->pd; cctx = preq->cctx;