From 4f0bc19bc7240909df185b0a603a5a055f1b0e80 Mon Sep 17 00:00:00 2001 From: Fabian Keil Date: Thu, 5 May 2022 11:53:08 +0200 Subject: [PATCH] tests/server: declare variable 'reqlogfile' static Silences the warning: CC socksd-socksd.o socksd.c:143:13: warning: no previous extern declaration for non-static variable 'reqlogfile' [-Wmissing-variable-declarations] const char *reqlogfile = DEFAULT_REQFILE; ^ socksd.c:143:7: note: declare 'static' if the variable is not intended to be used outside of this translation unit const char *reqlogfile = DEFAULT_REQFILE; ^ 1 warning generated. ... when compiling with clang 13. Closes: #8799 Reviewed-by: Daniel Gustafsson --- tests/server/socksd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/server/socksd.c b/tests/server/socksd.c index 1f0ca1287f..080616545b 100644 --- a/tests/server/socksd.c +++ b/tests/server/socksd.c @@ -140,7 +140,7 @@ struct configurable { static struct configurable config; const char *serverlogfile = DEFAULT_LOGFILE; -const char *reqlogfile = DEFAULT_REQFILE; +static const char *reqlogfile = DEFAULT_REQFILE; static const char *configfile = DEFAULT_CONFIG; static const char *socket_type = "IPv4";