]> 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>
Tue, 12 Apr 2016 06:52:39 +0000 (18:52 +1200)
committerAmos Jeffries <squid3@treenet.co.nz>
Tue, 12 Apr 2016 06:52:39 +0000 (18:52 +1200)
src/ip/Intercept.cc

index aab49910f80078977a1414bf2587355e326ab5e4..bbce67104b0623e0e914492c1591cff0894b064c 100644 (file)
@@ -205,7 +205,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;