]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Update helper debug macro for safe use inside unwrapped if...else statements
authorAmos Jeffries <amosjeffries@squid-cache.org>
Thu, 29 Jul 2010 13:06:05 +0000 (07:06 -0600)
committerAmos Jeffries <amosjeffries@squid-cache.org>
Thu, 29 Jul 2010 13:06:05 +0000 (07:06 -0600)
compat/debug.h

index b03d6361de8554cfa9c4b7abc37507532faa9bd6..d209d7d706c708f1f992bd68218288161df78a47 100644 (file)
@@ -30,7 +30,7 @@ SQUIDCEXTERN int debug_enabled;
                      if (debug_enabled) { \
                          fprintf(stderr, "%s(%d): pid=%ld :", __FILE__, __LINE__, (long)getpid() ); \
                          fprintf(stderr,X); \
-                     }
+                     } else (void)0
 
 #else /* __GNUC__ */