From: Carsten Grzemba Date: Thu, 7 Apr 2016 12:03:53 +0000 (+1200) Subject: Bug 4482: Solaris GCC 5.2 warning in src/ip/Intercept.cc X-Git-Tag: SQUID_4_0_9~20 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=539d9d8a8aeb35f227c9849c1f37106bdfcddf35;p=thirdparty%2Fsquid.git Bug 4482: Solaris GCC 5.2 warning in src/ip/Intercept.cc --- diff --git a/src/ip/Intercept.cc b/src/ip/Intercept.cc index 74c07bde48..940986b81a 100644 --- a/src/ip/Intercept.cc +++ b/src/ip/Intercept.cc @@ -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;