i386, x86_64, ppc: fix switch fallthrough cases with GCC7
authorAndrei Borzenkov <arvidjaar@gmail.com>
Tue, 4 Apr 2017 16:23:55 +0000 (19:23 +0300)
committerAndrei Borzenkov <arvidjaar@gmail.com>
Tue, 4 Apr 2017 16:23:55 +0000 (19:23 +0300)
commit4bd4a88725604471fdbd86316c91967a7f4dba5a
treea742bfa380dc3e54bc11cdf9ff20810ec74d9558
parent6cef7f6079550af3bf91dbff824398eaef08c3c5
i386, x86_64, ppc: fix switch fallthrough cases with GCC7

In util/getroot and efidisk slightly modify exitsing comment to mostly
retain it but still make GCC7 compliant with respect to fall through
annotation.

In grub-core/lib/xzembed/xz_dec_lzma2.c it adds same comments as
upstream.

In grub-core/tests/setjmp_tets.c declare functions as "noreturn" to
suppress GCC7 warning.

In grub-core/gnulib/regexec.c use new __attribute__, because existing
annotation is not recognized by GCC7 parser (which requires that comment
immediately precedes case statement).

Otherwise add FALLTHROUGH comment.

Closes: 50598
17 files changed:
grub-core/commands/hdparm.c
grub-core/commands/nativedisk.c
grub-core/disk/cryptodisk.c
grub-core/disk/efi/efidisk.c
grub-core/efiemu/mm.c
grub-core/gdb/cstub.c
grub-core/gnulib/regexec.c
grub-core/lib/xzembed/xz_dec_lzma2.c
grub-core/lib/xzembed/xz_dec_stream.c
grub-core/loader/i386/linux.c
grub-core/tests/setjmp_test.c
grub-core/video/ieee1275.c
grub-core/video/readers/jpeg.c
util/getroot.c
util/grub-install.c
util/grub-mkimagexx.c
util/grub-mount.c