From c46e7febd8aa9aa87c7ed129242175c1b3ec149c Mon Sep 17 00:00:00 2001 From: Alex Rousskov Date: Tue, 4 Oct 2022 13:26:08 +0000 Subject: [PATCH] Fix GCC build on macos-11: -Wunused-parameter (#1159) --- src/comm.cc | 1 + src/ip/Intercept.cc | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/comm.cc b/src/comm.cc index 551d41d61d..53da7deef8 100644 --- a/src/comm.cc +++ b/src/comm.cc @@ -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) diff --git a/src/ip/Intercept.cc b/src/ip/Intercept.cc index 08b00faf28..adf4ad1969 100644 --- a/src/ip/Intercept.cc +++ b/src/ip/Intercept.cc @@ -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) -- 2.47.2