Wind River Support Network

HomeDefectsLIN6-9302
Fixed

LIN6-9302 : CLONE - error: right-hand operand of comma expression has no effect [-Werror=unused-value]

Created: Jan 23, 2015    Updated: Dec 3, 2018
Resolved Date: Jan 25, 2015
Previous ID: LIN5-20011
Found In Version: 6.0.0.16
Fix Version: 6.0.0.17
Severity: Standard
Applicable for: Wind River Linux 6
Component/s: Host Tools

Description

when host gcc version is 4.9, below error would be:

n file included from /home/wrlbuild/builds/builds-2015-01-22-204420/qemux86-64_std_bp_oe/bitbake_build/tmp/work/x86_64-linux/binutils-native-2.22-r9/binutils-2.22/bfd/opncls.c:26:0:
/home/wrlbuild/builds/builds-2015-01-22-204420/qemux86-64_std_bp_oe/bitbake_build/tmp/work/x86_64-linux/binutils-native-2.22-r9/binutils-2.22/bfd/opncls.c: In function 'bfd_fopen':
./bfd.h:524:65: error: right-hand operand of comma expression has no effect [-Werror=unused-value]
 #define bfd_set_cacheable(abfd,bool) (((abfd)->cacheable = bool), TRUE)
                                                                 ^
/home/wrlbuild/builds/builds-2015-01-22-204420/qemux86-64_std_bp_oe/bitbake_build/tmp/work/x86_64-linux/binutils-native-2.22-r9/binutils-2.22/bfd/opncls.c:256:5: note: in expansion of macro 'bfd_set_cacheable'
     bfd_set_cacheable (nbfd, TRUE);
-------------------------------
Fix in upstream:
https://gcc.gnu.org/gcc-4.9/porting_to.html

Other Downloads


Live chat
Online