]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Resolve unused variable warnings from rev.12757
authorAmos Jeffries <squid3@treenet.co.nz>
Tue, 16 Apr 2013 13:09:27 +0000 (07:09 -0600)
committerAmos Jeffries <squid3@treenet.co.nz>
Tue, 16 Apr 2013 13:09:27 +0000 (07:09 -0600)
src/comm.cc

index caf6d5032ee7d11eb32d52f76ebf01f80968a7e4..7f3ce5061a9df9b26268081ed230eadbebd2a01d 100644 (file)
@@ -503,22 +503,22 @@ comm_set_v6only(int fd, int tos)
 void
 comm_set_transparent(int fd)
 {
-    bool doneSuid = false;
 #if _SQUID_LINUX_ && defined(IP_TRANSPARENT) // Linux
 # define soLevel SOL_IP
 # define soFlag  IP_TRANSPARENT
+    bool doneSuid = false;
 
 #elif defined(SO_BINDANY) // OpenBSD 4.7+ and NetBSD with PF
 # define soLevel SOL_SOCKET
 # define soFlag  SO_BINDANY
     enter_suid();
-    doneSuid = true;
+    bool doneSuid = true;
 
 #elif defined(IP_BINDANY) // FreeBSD with IPFW
 # define soLevel IPPROTO_IP
 # define soFlag  IP_BINDANY
     enter_suid();
-    doneSuid = true;
+    bool doneSuid = true;
 
 #else
     debugs(50, DBG_CRITICAL, "WARNING: comm_open: setsockopt(TPROXY) not supported on this platform");