Commit Graph

4 Commits

Author SHA1 Message Date
Andrei Borzenkov 4bd4a88725 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
2017-04-04 19:23:55 +03:00
Vladimir Serbinenko 7d06b24eac * grub-core/tests/setjmp_test.c: Reset counter to 0 before starting. 2013-11-12 15:58:50 +01:00
Vladimir 'phcoder' Serbinenko 709ad61b07 * grub-core/tests/setjmp_test.c: Ignore missing noreturn. 2013-05-11 10:17:19 +02:00
Vladimir 'phcoder' Serbinenko 011f8ae8d2 * grub-core/tests/setjmp_test.c: New test. 2013-05-07 12:28:59 +02:00