From: Fabian Keil Date: Thu, 5 May 2022 09:53:08 +0000 (+0200) Subject: tests/server: declare variable 'reqlogfile' static X-Git-Tag: curl-7_83_1~27 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=4f0bc19bc7240909df185b0a603a5a055f1b0e80;p=thirdparty%2Fcurl.git 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 --- 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";