]> 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)
committerAmos Jeffries <yadij@users.noreply.github.com>
Wed, 7 Dec 2022 12:59:44 +0000 (01:59 +1300)
src/comm.cc
src/ip/Intercept.cc

index b4818f3e7735a852e8ca8ade2d7f5d8f0307b763..9f69f076bdf917d25763b0ea9882b91c7a278d78 100644 (file)
@@ -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)
index 4aca3149ab9898f9207c5bdd484c7e162097f5ba..45e99a3d3da53c16c84d8dae228bd6ce03409cd7 100644 (file)
@@ -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)