]> git.ipfire.org Git - thirdparty/unbound.git/commitdiff
- Fix unused variable warning for clang analyzer.
authorW.C.A. Wijngaards <wouter@nlnetlabs.nl>
Thu, 16 Jul 2020 13:41:25 +0000 (15:41 +0200)
committerW.C.A. Wijngaards <wouter@nlnetlabs.nl>
Thu, 16 Jul 2020 13:41:25 +0000 (15:41 +0200)
daemon/unbound.c
doc/Changelog

index ceb3da6f53aa821317a7f47fb24f4102a8fe7c8b..3f96603c43073b1d96975bb9ec06b4154f347743 100644 (file)
@@ -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 */
index 38987e7f19329b9423d00e649bd6f7ab279bdc8a..f3450e0750a326935d50b15c41aafbabd47cf213 100644 (file)
@@ -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.