GNU GRUB - Bugs: bug #51523, Compilation error with GCC 7.1
You are not allowed to post comments on this tracker with your current authentication level.
bug #51523: Compilation error with GCC 7.1
Submitter: | Iru Cai <archlinux> | ||
Submitted: | Fri 21 Jul 2017 02:30:02 AM UTC | ||
Votes: | 100 | ||
Category: | Compilation | Severity: | Major |
Priority: | 5 - Normal | Item Group: | None |
Status: | Fixed | Privacy: | Public |
Assigned to: | None | Originator Name: | |
Open/Closed: | Closed | Release: | Git master |
Release: | Reproducibility: | Every Time | |
Planned Release: | None |
No files currently attached
Depends on the following items: None found
Items that depend on this one: None found
Carbon-Copy List
There are 100 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.
Follow 3 latest changes.
Date | Changed by | Updated Field | Previous Value | => | Replaced by |
---|---|---|---|---|---|
2018-01-30 | grenders22 | Carbon-Copy | - | Added grenders22 | |
2017-08-14 | phcoder | Status | None | Fixed | |
Open/Closed | Open | Closed |
Powered by Savane 3.13-4448.
Corresponding source code
The generated grub_script.yy.c has useless statements that make GCC 7.1 give out warning.
make[3]: Entering directory '/home/irudog/SourceCode/grub/grub-core'
gcc -DHAVE_CONFIG_H -I. -I.. -Wall -W -DGRUB_MACHINE_COREBOOT=1 -DGRUB_MACHINE=I386_COREBOOT -m32 -nostdinc -isystem /usr/lib/gcc/x86_64-pc-linux-gnu/7.1.1/include -I../include -I../include -DGRUB_FILE=\"grub_script.yy.c\" -I. -I. -I.. -I.. -I../include -I../include -I../grub-core/lib/libgcrypt-grub/src/ -I../grub-core/lib/posix_wrap -D_FILE_OFFSET_BITS=64 -Os -Wall -W -Wshadow -Wpointer-arith -Wundef -Wchar-subscripts -Wcomment -Wdeprecated-declarations -Wdisabled-optimization -Wdiv-by-zero -Wfloat-equal -Wformat-extra-args -Wformat-security -Wformat-y2k -Wimplicit -Wimplicit-function-declaration -Wimplicit-int -Wmain -Wmissing-braces -Wmissing-format-attribute -Wmultichar -Wparentheses -Wreturn-type -Wsequence-point -Wshadow -Wsign-compare -Wswitch -Wtrigraphs -Wunknown-pragmas -Wunused -Wunused-function -Wunused-label -Wunused-parameter -Wunused-value -Wunused-variable -Wwrite-strings -Wnested-externs -Wstrict-prototypes -g -Wredundant-decls -Wmissing-prototypes -Wmissing-declarations -Wextra -Wattributes -Wendif-labels -Winit-self -Wint-to-pointer-cast -Winvalid-pch -Wmissing-field-initializers -Wnonnull -Woverflow -Wvla -Wpointer-to-int-cast -Wstrict-aliasing -Wvariadic-macros -Wvolatile-register-var -Wpointer-sign -Wmissing-include-dirs -Wmissing-prototypes -Wmissing-declarations -Wformat=2 -march=i386 -m32 -mrtd -mregparm=3 -falign-jumps=1 -falign-loops=1 -falign-functions=1 -freg-struct-return -mno-mmx -mno-sse -mno-sse2 -mno-sse3 -mno-3dnow -msoft-float -fno-dwarf2-cfi-asm -mno-stack-arg-probe -fno-asynchronous-unwind-tables -fno-unwind-tables -Qn -fno-PIE -fno-pie -fno-stack-protector -Wtrampolines -Werror -ffreestanding -fno-builtin -Wno-redundant-decls -MT normal_module-grub_script.yy.o -MD -MP -MF .deps-core/normal_module-grub_script.yy.Tpo -c -o normal_module-grub_script.yy.o `test -f 'grub_script.yy.c' || echo './'`grub_script.yy.c
grub_script.yy.c: In function 'yy_fatal_error':
grub_script.yy.c:18:22: error: statement with no effect [-Werror=unused-value]
^
grub_script.yy.c:2366:2: note: in expansion of macro 'fprintf'
(void)yyg;
^~~~~~~
cc1: all warnings being treated as errors
make[3]: * [Makefile:36668: normal_module-grub_script.yy.o] Error 1