wok-next view lzop/stuff/patches/lzop-gcc6.patch @ rev 21402
updated php (7.4.4 -> 7.4.5)
author | Hans-G?nter Theisgen |
---|---|
date | Tue Apr 21 07:47:41 2020 +0100 (2020-04-21) |
parents | ec3ced0d30b1 |
children |
line source
1 Origin: vendor, https://github.com/openembedded/openembedded-core/blob/master/meta/recipes-support/lzop/lzop/lzop-1.03-gcc6.patch
2 Description: Compatibility with gcc6
3 gcc-6 has additional errors e.g.
4 .
5 ./test.c:1:12: error: variably modified '__acc_cta' at file scope
6 extern int __acc_cta[1-2*!((1l << (8*8 -1)) < 0)];
7 ^~~~~~~~~
8 .
9 This is rightly pointed out since that index is undefined
10 Signed-off-by: Khem Raj <raj.khem@gmail.com>
11 Upstream-Status: Pending
12 Bug-Debian: https://bugs.debian.org/812054
14 --- a/src/miniacc.h
15 +++ b/src/miniacc.h
16 @@ -4461,12 +4461,12 @@
17 #if defined(__MSDOS__) && defined(__TURBOC__) && (__TURBOC__ < 0x0150)
18 #elif 1 && (ACC_CC_SUNPROC) && !defined(ACCCHK_CFG_PEDANTIC)
19 #else
20 - ACCCHK_ASSERT((1 << (8*SIZEOF_INT-1)) < 0)
21 + ACCCHK_ASSERT((int)(1u << (8*SIZEOF_INT-1)) < 0)
22 #endif
23 ACCCHK_ASSERT((1u << (8*SIZEOF_INT-1)) > 0)
24 #if 1 && (ACC_CC_SUNPROC) && !defined(ACCCHK_CFG_PEDANTIC)
25 #else
26 - ACCCHK_ASSERT((1l << (8*SIZEOF_LONG-1)) < 0)
27 + ACCCHK_ASSERT((long)(1ul << (8*SIZEOF_LONG-1)) < 0)
28 #endif
29 ACCCHK_ASSERT((1ul << (8*SIZEOF_LONG-1)) > 0)
30 #if defined(acc_int16e_t)
31 @@ -4695,7 +4695,7 @@
32 #elif 1 && (ACC_CC_LCC || ACC_CC_LCCWIN32) && !defined(ACCCHK_CFG_PEDANTIC)
33 #elif 1 && (ACC_CC_SUNPROC) && !defined(ACCCHK_CFG_PEDANTIC)
34 #elif !(ACC_BROKEN_INTEGRAL_PROMOTION) && (SIZEOF_INT > 1)
35 - ACCCHK_ASSERT( (((unsigned char)128) << (int)(8*sizeof(int)-8)) < 0)
36 + ACCCHK_ASSERT( (int)((unsigned int)((unsigned char)128) << (int)(8*sizeof(int)-8)) < 0)
37 #endif
38 #if (ACC_CC_BORLANDC && (__BORLANDC__ >= 0x0530) && (__BORLANDC__ < 0x0560))
39 # pragma option pop