wok-next diff lzop/stuff/lzop-gcc6.patch @ rev 20402
Up seed (3.8.1) use webkitgtk instead of libwebkit; add cogl for clutter; up clutter (1.26.2) using mesa17 instead of mesa; up gnome-games using mesa17 instead of mix 'mesa & mesa17'
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Tue Dec 05 17:49:11 2017 +0200 (2017-12-05) |
parents | |
children |
line diff
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/lzop/stuff/lzop-gcc6.patch Tue Dec 05 17:49:11 2017 +0200 1.3 @@ -0,0 +1,39 @@ 1.4 +Origin: vendor, https://github.com/openembedded/openembedded-core/blob/master/meta/recipes-support/lzop/lzop/lzop-1.03-gcc6.patch 1.5 +Description: Compatibility with gcc6 1.6 + gcc-6 has additional errors e.g. 1.7 + . 1.8 + ./test.c:1:12: error: variably modified '__acc_cta' at file scope 1.9 + extern int __acc_cta[1-2*!((1l << (8*8 -1)) < 0)]; 1.10 + ^~~~~~~~~ 1.11 + . 1.12 + This is rightly pointed out since that index is undefined 1.13 +Signed-off-by: Khem Raj <raj.khem@gmail.com> 1.14 +Upstream-Status: Pending 1.15 +Bug-Debian: https://bugs.debian.org/812054 1.16 + 1.17 +--- a/src/miniacc.h 1.18 ++++ b/src/miniacc.h 1.19 +@@ -4461,12 +4461,12 @@ 1.20 + #if defined(__MSDOS__) && defined(__TURBOC__) && (__TURBOC__ < 0x0150) 1.21 + #elif 1 && (ACC_CC_SUNPROC) && !defined(ACCCHK_CFG_PEDANTIC) 1.22 + #else 1.23 +- ACCCHK_ASSERT((1 << (8*SIZEOF_INT-1)) < 0) 1.24 ++ ACCCHK_ASSERT((int)(1u << (8*SIZEOF_INT-1)) < 0) 1.25 + #endif 1.26 + ACCCHK_ASSERT((1u << (8*SIZEOF_INT-1)) > 0) 1.27 + #if 1 && (ACC_CC_SUNPROC) && !defined(ACCCHK_CFG_PEDANTIC) 1.28 + #else 1.29 +- ACCCHK_ASSERT((1l << (8*SIZEOF_LONG-1)) < 0) 1.30 ++ ACCCHK_ASSERT((long)(1ul << (8*SIZEOF_LONG-1)) < 0) 1.31 + #endif 1.32 + ACCCHK_ASSERT((1ul << (8*SIZEOF_LONG-1)) > 0) 1.33 + #if defined(acc_int16e_t) 1.34 +@@ -4695,7 +4695,7 @@ 1.35 + #elif 1 && (ACC_CC_LCC || ACC_CC_LCCWIN32) && !defined(ACCCHK_CFG_PEDANTIC) 1.36 + #elif 1 && (ACC_CC_SUNPROC) && !defined(ACCCHK_CFG_PEDANTIC) 1.37 + #elif !(ACC_BROKEN_INTEGRAL_PROMOTION) && (SIZEOF_INT > 1) 1.38 +- ACCCHK_ASSERT( (((unsigned char)128) << (int)(8*sizeof(int)-8)) < 0) 1.39 ++ ACCCHK_ASSERT( (int)((unsigned int)((unsigned char)128) << (int)(8*sizeof(int)-8)) < 0) 1.40 + #endif 1.41 + #if (ACC_CC_BORLANDC && (__BORLANDC__ >= 0x0530) && (__BORLANDC__ < 0x0560)) 1.42 + # pragma option pop