Fix build with gcc-6 82/104282/1 accepted/tizen_3.0_common accepted/tizen_3.0_ivi accepted/tizen_3.0_mobile accepted/tizen_3.0_tv accepted/tizen_3.0_wearable accepted/tizen_4.0_unified accepted/tizen_common accepted/tizen_ivi accepted/tizen_mobile accepted/tizen_tv accepted/tizen_wearable tizen_3.0 tizen_4.0 tizen_4.0_tv accepted/tizen/3.0/common/20170822.162239 accepted/tizen/3.0/ivi/20170822.054701 accepted/tizen/3.0/ivi/20170822.054705 accepted/tizen/3.0/mobile/20170822.054639 accepted/tizen/3.0/tv/20170822.054644 accepted/tizen/3.0/tv/20170822.054647 accepted/tizen/3.0/wearable/20170822.054657 accepted/tizen/4.0/unified/20170816.014003 accepted/tizen/4.0/unified/20170828.222959 accepted/tizen/common/20161215.170218 accepted/tizen/ivi/20161215.073852 accepted/tizen/mobile/20161215.073757 accepted/tizen/tv/20161215.073828 accepted/tizen/unified/20170309.040306 accepted/tizen/wearable/20161215.073832 submit/tizen/20161215.002958 submit/tizen_3.0/20170822.015056 submit/tizen_3.0/20170822.020756 submit/tizen_4.0/20170811.094300 submit/tizen_4.0/20170828.100006 submit/tizen_unified/20170308.100415 tizen_4.0.IoT.p1_release tizen_4.0.IoT.p2_release tizen_4.0.m1_release tizen_4.0.m2_release upstream/1.03
authorJaehun Jeong <jh4u.jeong@samsung.com>
Wed, 2 Nov 2016 05:26:40 +0000 (14:26 +0900)
committerDongHun Kwak <dh0128.kwak@samsung.com>
Tue, 13 Dec 2016 03:59:30 +0000 (12:59 +0900)
Change-Id: I53d7b2c50baf7833b8176d8f154d1e47a72f548a
Signed-off-by: Jaehun Jeong <jh4u.jeong@samsung.com>
Signed-off-by: DongHun Kwak <dh0128.kwak@samsung.com>
src/miniacc.h

index 9170c23..4c0d210 100644 (file)
@@ -4469,12 +4469,12 @@ ACCLIB_EXTERN(int, acc_spawnve) (int mode, const char* fn, const char* const * a
 #if defined(__MSDOS__) && defined(__TURBOC__) && (__TURBOC__ < 0x0150)
 #elif 1 && (ACC_CC_SUNPROC) && !defined(ACCCHK_CFG_PEDANTIC)
 #else
-    ACCCHK_ASSERT((1   << (8*SIZEOF_INT-1)) < 0)
+    ACCCHK_ASSERT((int)(1u   << (8*SIZEOF_INT-1)) < 0)
 #endif
     ACCCHK_ASSERT((1u  << (8*SIZEOF_INT-1)) > 0)
 #if 1 && (ACC_CC_SUNPROC) && !defined(ACCCHK_CFG_PEDANTIC)
 #else
-    ACCCHK_ASSERT((1l  << (8*SIZEOF_LONG-1)) < 0)
+    ACCCHK_ASSERT((long)(1ul  << (8*SIZEOF_LONG-1)) < 0)
 #endif
     ACCCHK_ASSERT((1ul << (8*SIZEOF_LONG-1)) > 0)
 #if defined(acc_int16e_t)
@@ -4703,7 +4703,7 @@ ACCLIB_EXTERN(int, acc_spawnve) (int mode, const char* fn, const char* const * a
 #elif 1 && (ACC_CC_LCC || ACC_CC_LCCWIN32) && !defined(ACCCHK_CFG_PEDANTIC)
 #elif 1 && (ACC_CC_SUNPROC) && !defined(ACCCHK_CFG_PEDANTIC)
 #elif !(ACC_BROKEN_INTEGRAL_PROMOTION) && (SIZEOF_INT > 1)
-    ACCCHK_ASSERT( (((unsigned char)128) << (int)(8*sizeof(int)-8)) < 0)
+    ACCCHK_ASSERT( (int)((unsigned int)((unsigned char)128) << (int)(8*sizeof(int)-8)) < 0)
 #endif
 #if (ACC_CC_BORLANDC && (__BORLANDC__ >= 0x0530) && (__BORLANDC__ < 0x0560))
 #  pragma option pop