]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Bug 4482: Solaris GCC 5.2 warning in src/ip/Intercept.cc
authorCarsten Grzemba <cgrzemba@opencsw.org>
Thu, 7 Apr 2016 12:03:53 +0000 (00:03 +1200)
committerAmos Jeffries <squid3@treenet.co.nz>
Thu, 7 Apr 2016 12:03:53 +0000 (00:03 +1200)
src/ip/Intercept.cc

index 74c07bde48b70c253dcf0c0622b74cfd279d5b44..940986b81a125e07a88169f7bc258417335956ec 100644 (file)
@@ -206,7 +206,7 @@ Ip::Intercept::IpfInterception(const Comm::ConnectionPointer &newConn, int silen
         // warn once every 10 at critical level, then push down a level each repeated event
         static int warningLevel = DBG_CRITICAL;
         debugs(89, warningLevel, "IPF (IPFilter v4) NAT does not support IPv6. Please upgrade to IPFilter v5.1");
-        warningLevel = ++warningLevel % 10;
+        warningLevel = (warningLevel + 1) % 10;
         return false;
 #else
         natLookup.nl_v = 6;