From: W.C.A. Wijngaards Date: Thu, 16 Jul 2020 13:41:25 +0000 (+0200) Subject: - Fix unused variable warning for clang analyzer. X-Git-Tag: release-1.11.0~8 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2902ee133bcd3acc7258d08e5315ddac600942f8;p=thirdparty%2Funbound.git - Fix unused variable warning for clang analyzer. --- diff --git a/daemon/unbound.c b/daemon/unbound.c index ceb3da6f5..3f96603c4 100644 --- a/daemon/unbound.c +++ b/daemon/unbound.c @@ -534,6 +534,8 @@ perform_setup(struct daemon* daemon, struct config_file* cfg, int debug_mode, LOGIN_SETALL & ~LOGIN_SETUSER & ~LOGIN_SETGROUP) != 0) log_warn("unable to setusercontext %s: %s", cfg->username, strerror(errno)); +#else + (void)pwd; #endif /* HAVE_SETUSERCONTEXT */ } #endif /* HAVE_GETPWNAM */ diff --git a/doc/Changelog b/doc/Changelog index 38987e7f1..f3450e075 100644 --- a/doc/Changelog +++ b/doc/Changelog @@ -1,5 +1,6 @@ 16 July 2020: Wouter - Fix check conf test for referencing installation paths. + - Fix unused variable warning for clang analyzer. 16 July 2020: George - Introduce 'include-toplevel:' configuration option.