[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Bug binutils/18607] New: binutils compilation fails with warning "right
From: |
hanno at hboeck dot de |
Subject: |
[Bug binutils/18607] New: binutils compilation fails with warning "right-hand operand of comma expression has no effect" |
Date: |
Sat, 27 Jun 2015 10:51:14 +0000 |
https://sourceware.org/bugzilla/show_bug.cgi?id=18607
Bug ID: 18607
Summary: binutils compilation fails with warning "right-hand
operand of comma expression has no effect"
Product: binutils
Version: unspecified
Status: NEW
Severity: normal
Priority: P2
Component: binutils
Assignee: unassigned at sourceware dot org
Reporter: hanno at hboeck dot de
Target Milestone: ---
The current git code of binutils fails to compile for me, likely a gcc 4.9
issue.
gcc -DHAVE_CONFIG_H -I. -I. -I. -I../bfd -I./config -I./../include -I./..
-I./../bfd -DLOCALEDIR="\"/usr/local/share/locale\"" -W -Wall
-Wstrict-prototypes -Wmissing-prototypes -Wshadow -Werror -g -O2 -MT subsegs.o
-MD -MP -MF .deps/subsegs.Tpo -c -o subsegs.o subsegs.c
In file included from as.h:95:0,
from subsegs.c:25:
subsegs.c: In function ‘subseg_change’:
../bfd/bfd.h:304:75: error: right-hand operand of comma expression has no
effect [-Werror=unused-value]
#define bfd_set_section_userdata(bfd, ptr, val) (((ptr)->userdata =
(val)),TRUE)
^
subsegs.c:70:7: note: in expansion of macro ‘bfd_set_section_userdata’
bfd_set_section_userdata (stdoutput, seg, seginfo);
^
subsegs.c: In function ‘subseg_get’:
../bfd/bfd.h:304:75: error: right-hand operand of comma expression has no
effect [-Werror=unused-value]
#define bfd_set_section_userdata(bfd, ptr, val) (((ptr)->userdata =
(val)),TRUE)
The -Werror=unused-value makes these warnings fatal and lets the compile fail.
I didn't do anything special, just ./configure; make on an up-to-date Gentoo
system with gcc 4.9.2
I've seen that similar issues were already reported and fixed in January:
https://sourceware.org/ml/binutils/2014-01/msg00334.html
--
You are receiving this mail because:
You are on the CC list for the bug.
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Bug binutils/18607] New: binutils compilation fails with warning "right-hand operand of comma expression has no effect",
hanno at hboeck dot de <=