- Fix unused variable warning for clang analyzer.

This commit is contained in:
W.C.A. Wijngaards 2020-07-16 15:41:25 +02:00
parent 84adade86c
commit 2902ee133b
2 changed files with 3 additions and 0 deletions

View file

@ -534,6 +534,8 @@ perform_setup(struct daemon* daemon, struct config_file* cfg, int debug_mode,
LOGIN_SETALL & ~LOGIN_SETUSER & ~LOGIN_SETGROUP) != 0) LOGIN_SETALL & ~LOGIN_SETUSER & ~LOGIN_SETGROUP) != 0)
log_warn("unable to setusercontext %s: %s", log_warn("unable to setusercontext %s: %s",
cfg->username, strerror(errno)); cfg->username, strerror(errno));
#else
(void)pwd;
#endif /* HAVE_SETUSERCONTEXT */ #endif /* HAVE_SETUSERCONTEXT */
} }
#endif /* HAVE_GETPWNAM */ #endif /* HAVE_GETPWNAM */

View file

@ -1,5 +1,6 @@
16 July 2020: Wouter 16 July 2020: Wouter
- Fix check conf test for referencing installation paths. - Fix check conf test for referencing installation paths.
- Fix unused variable warning for clang analyzer.
16 July 2020: George 16 July 2020: George
- Introduce 'include-toplevel:' configuration option. - Introduce 'include-toplevel:' configuration option.