From: Alex Rousskov Date: Tue, 4 Oct 2022 13:26:08 +0000 (+0000) Subject: Fix GCC build on macos-11: -Wunused-parameter (#1159) X-Git-Tag: SQUID_5_8~14 X-Git-Url: http://git.ipfire.org/gitweb/gitweb.cgi?a=commitdiff_plain;h=fd2c13d5b1b8d6ab8961d85ac904817e8eb4c15b;p=thirdparty%2Fsquid.git Fix GCC build on macos-11: -Wunused-parameter (#1159) --- diff --git a/src/comm.cc b/src/comm.cc index b4818f3e77..9f69f076bd 100644 --- a/src/comm.cc +++ b/src/comm.cc @@ -309,6 +309,7 @@ comm_set_transparent(int fd) #else debugs(50, DBG_CRITICAL, "WARNING: comm_open: setsockopt(TPROXY) not supported on this platform"); + (void)fd; #endif /* sockopt */ #if defined(soLevel) && defined(soFlag) diff --git a/src/ip/Intercept.cc b/src/ip/Intercept.cc index 4aca3149ab..45e99a3d3d 100644 --- a/src/ip/Intercept.cc +++ b/src/ip/Intercept.cc @@ -490,7 +490,7 @@ Ip::Intercept::ProbeForTproxy(Ip::Address &test) } #else - debugs(3, 3, "TPROXY setsockopt() not supported on this platform. Disabling TPROXY."); + debugs(3, 3, "TPROXY setsockopt() not supported on this platform. Disabling TPROXY on port " << test); #endif if (doneSuid)