https://sourceware.org/bugzilla/show_bug.cgi?id=17486
Bug ID: 17486
Summary: Build failure due to -Werror=unused-value
Product: binutils
Version: 2.24
Status: NEW
Severity: normal
Priority: P2
Component: binutils
Assignee: unassigned at sourceware dot org
Reporter: josh at joshtriplett dot org
Attempting to build Linux binutils 2.24.51.0.3 produced the following
errors:
gcc -DHAVE_CONFIG_H -I. -I. -I. -I../bfd -I./config -I./../include -I./..
-I./../bfd -DLOCALEDIR="\"/home/josh/src/binutils-linux/inst/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
subsegs.c: In function ‘subseg_change’:
subsegs.c:70:37: error: right-hand operand of comma expression has no effect
[-Werror=unused-value]
bfd_set_section_userdata (stdoutput, seg, seginfo);
^
subsegs.c: In function ‘subseg_get’:
subsegs.c:172:40: error: right-hand operand of comma expression has no effe
ct
[-Werror=unused-value]
bfd_set_section_userdata (stdoutput, secptr, seginfo);
^
[...]
gcc -DHAVE_CONFIG_H -I. -I. -I. -I../bfd -I./config -I./../include -I./..
-I./../bfd -DLOCALEDIR="\"/home/josh/src/binutils-linux/inst/share/locale
\""
-W -Wall -Wstrict-prototypes -Wmissing-prototypes -Wshadow -Werror -g -O2 -
MT
write.o -MD -MP -MF .deps/write.Tpo -c -o write.o write.c
write.c: In function ‘record_alignment’:
write.c:366:40: error: right-hand operand of comma expression has no effect
[-Werror=unused-value]
bfd_set_section_alignment (stdoutput, seg, align);
^
~$ gcc --version
gcc (Debian 4.9.1-16) 4.9.1
--
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
bug-binutils mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/bug-binutils