From 038436dace0ed97529a10ecc4fefb7f2f2c0b1a4 Mon Sep 17 00:00:00 2001 From: Fabian Keil Date: Wed, 3 Jun 2020 14:07:29 +0200 Subject: [PATCH] Silence a warning when compiling without FEATURE_HTTPS_INSPECTION cgi.c:447:22: warning: unused variable 'alt_prefix_https' [-Wunused-variable] static const char alt_prefix_https[] = "https://" CGI_SITE_1_HOST "/"; Sponsored by: Robert Klemme --- cgi.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/cgi.c b/cgi.c index b9f81947..580e2bfb 100644 --- a/cgi.c +++ b/cgi.c @@ -444,7 +444,9 @@ static int referrer_is_safe(const struct client_state *csp) { char *referrer; static const char alternative_prefix[] = "http://" CGI_SITE_1_HOST "/"; +#ifdef FEATURE_HTTPS_INSPECTION static const char alt_prefix_https[] = "https://" CGI_SITE_1_HOST "/"; +#endif const char *trusted_cgi_referrer = csp->config->trusted_cgi_referrer; referrer = grep_cgi_referrer(csp); -- 2.39.2