]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Fix GCC build on macos-11: -Wunused-parameter (#1159)
authorAlex Rousskov <rousskov@measurement-factory.com>
Tue, 4 Oct 2022 13:26:08 +0000 (13:26 +0000)
committerSquid Anubis <squid-anubis@squid-cache.org>
Wed, 5 Oct 2022 20:37:44 +0000 (20:37 +0000)
src/comm.cc
src/ip/Intercept.cc

index 551d41d61d26407865091b04a65c4fd7b971533a..53da7deef869cc88d87bcffd40287c6067a281f1 100644 (file)
@@ -330,6 +330,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)
index 08b00faf28ba29ab98e21824cdcaece688d0fbdc..adf4ad1969143c92b874bfb838e1cc5cdb7d2d79 100644 (file)
@@ -476,7 +476,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)