summaryrefslogtreecommitdiffstats
path: root/meta-networking/recipes-daemons/squid/files/gcc7-fixes.patch
blob: cc1ea78a55cc6764c6ab77de19c1c8fc7bb9bb17 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
../../squid-3.5.26/src/DiskIO/DiskThreads/aiops.cc: In function 'void squidaio_init()':                                                              ../../squid-3.5.26/src/DiskIO/DiskThreads/DiskThreads.h:30:50: error: '*' in boolean context, suggest '&&' instead [-Werror=int-in-bool-context]      #define NUMTHREADS (Config.cacheSwap.n_configured*16)


Upstream-Status: Backport
Index: squid-3.5.26/src/DiskIO/DiskThreads/aiops.cc
===================================================================
--- squid-3.5.26.orig/src/DiskIO/DiskThreads/aiops.cc
+++ squid-3.5.26/src/DiskIO/DiskThreads/aiops.cc
@@ -290,7 +290,7 @@ squidaio_init(void)
     /* Create threads and get them to sit in their wait loop */
     squidaio_thread_pool = memPoolCreate("aio_thread", sizeof(squidaio_thread_t));
 
-    assert(NUMTHREADS);
+    assert(NUMTHREADS != 0);
 
     for (i = 0; i < NUMTHREADS; ++i) {
         threadp = (squidaio_thread_t *)squidaio_thread_pool->alloc();