]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Bug 4002: clang 3.4 unable to compile
authorFrancesco Chemolli <kinkie@squid-cache.org>
Mon, 13 Jan 2014 11:40:52 +0000 (04:40 -0700)
committerAmos Jeffries <squid3@treenet.co.nz>
Mon, 13 Jan 2014 11:40:52 +0000 (04:40 -0700)
part 3: Fix coding ambiguity in store_repl_heap.cc and heap.h

include/heap.h
src/repl/heap/store_repl_heap.cc

index 1a90f9b284c409b6b2704d209d8f2e30c8a1a17b..d37cc80273a73b9932cf1858382c621e59d8aa52 100644 (file)
@@ -158,7 +158,7 @@ SQUIDCEXTERN int heap_empty(heap *);
 SQUIDCEXTERN int heap_nodes(heap *);
 #else /* MACRO_DEBUG */
 #define        heap_nodes(heap)        ((heap)->last)
-#define        heap_empty(heap)        (((heap)->last <= 0) ? 1 : 0)
+#define        heap_empty(heap)        ((heap)->last <= 0 ? 1 : 0)
 #endif /* MACRO_DEBUG */
 
 /*
index 66dabaf72aff86622502d0173f431182f0e3518b..d2d841a861af81be0124e90eb5f5c8a46cb65915 100644 (file)
@@ -221,7 +221,7 @@ heap_purgeNext(RemovalPurgeWalker * walker)
 
 try_again:
 
-    if (!heap_nodes(h->theHeap) > 0)
+    if (heap_empty(h->theHeap))
         return NULL;           /* done */
 
     age = heap_peepminkey(h->theHeap);