Skip to content

Commit

Permalink
Fix compilation warning
Browse files Browse the repository at this point in the history
```
  ../src/responder/pam/pamsrv_cmd.c: In function ‘pam_reply’:
  ../src/responder/pam/pamsrv_cmd.c:1188:10: warning: unused variable ‘pk_preauth_done’ [-Wunused-variable]
   1188 |     bool pk_preauth_done = false;
```
in case SSSD is built without 'passkey' support.
  • Loading branch information
alexey-tikhonov committed Aug 22, 2023
1 parent bec58bf commit a69ce93
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/responder/pam/pamsrv_cmd.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit a69ce93

Please sign in to comment.