diff options
author | Khem Raj <raj.khem@gmail.com> | 2017-06-19 23:47:01 -0700 |
---|---|---|
committer | Joe MacDonald <joe_macdonald@mentor.com> | 2017-06-28 10:29:16 -0400 |
commit | 325e3ebf420e872f2c35dc242736d09bd9da8063 (patch) | |
tree | 3a7ec8708027e6ebcb1caa6577c3b6cb248c035b /meta-networking/recipes-daemons/squid/files/gcc7-fixes.patch | |
parent | cf95634bf4d8641f26711a2bf8490fec0d8f0007 (diff) | |
download | meta-openembedded-325e3ebf420e872f2c35dc242736d09bd9da8063.tar.gz |
squid: Upgrade to 3.5.26
Fix build errors with gcc7 along the way
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Signed-off-by: Joe MacDonald <joe_macdonald@mentor.com>
Diffstat (limited to 'meta-networking/recipes-daemons/squid/files/gcc7-fixes.patch')
-rw-r--r-- | meta-networking/recipes-daemons/squid/files/gcc7-fixes.patch | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/meta-networking/recipes-daemons/squid/files/gcc7-fixes.patch b/meta-networking/recipes-daemons/squid/files/gcc7-fixes.patch new file mode 100644 index 0000000000..cc1ea78a55 --- /dev/null +++ b/meta-networking/recipes-daemons/squid/files/gcc7-fixes.patch | |||
@@ -0,0 +1,17 @@ | |||
1 | ../../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) | ||
2 | |||
3 | |||
4 | Upstream-Status: Backport | ||
5 | Index: squid-3.5.26/src/DiskIO/DiskThreads/aiops.cc | ||
6 | =================================================================== | ||
7 | --- squid-3.5.26.orig/src/DiskIO/DiskThreads/aiops.cc | ||
8 | +++ squid-3.5.26/src/DiskIO/DiskThreads/aiops.cc | ||
9 | @@ -290,7 +290,7 @@ squidaio_init(void) | ||
10 | /* Create threads and get them to sit in their wait loop */ | ||
11 | squidaio_thread_pool = memPoolCreate("aio_thread", sizeof(squidaio_thread_t)); | ||
12 | |||
13 | - assert(NUMTHREADS); | ||
14 | + assert(NUMTHREADS != 0); | ||
15 | |||
16 | for (i = 0; i < NUMTHREADS; ++i) { | ||
17 | threadp = (squidaio_thread_t *)squidaio_thread_pool->alloc(); | ||