]> git.ipfire.org Git - thirdparty/grub.git/commitdiff
Remove pragmas related to -Wunreachable-code
authorColin Watson <cjwatson@ubuntu.com>
Wed, 20 Jan 2016 15:56:55 +0000 (15:56 +0000)
committerColin Watson <cjwatson@ubuntu.com>
Wed, 20 Jan 2016 15:56:55 +0000 (15:56 +0000)
-Wunreachable-code has been a no-op since GCC 4.5; GRUB hasn't been
compiled with it since 2012; and GCC 6 produces "error:
'-Wunreachable-code' is not an option that controls warnings" for these.

Fixes Debian bug #812047.

grub-core/lib/pbkdf2.c
grub-core/script/parser.y

index 01cee3951733e1f6bd9fa299dd5e9b14517fe3e3..28aa96c46c2bd452da309edd1716f7601c091ace 100644 (file)
@@ -31,7 +31,6 @@ GRUB_MOD_LICENSE ("GPLv2+");
    desired derived output length DKLEN.  Output buffer is DK which
    must have room for at least DKLEN octets.  The output buffer will
    be filled with the derived data.  */
-#pragma GCC diagnostic ignored "-Wunreachable-code"
 
 gcry_err_code_t
 grub_crypto_pbkdf2 (const struct gcry_md_spec *md,
index 1d60e9de2f351cd83baef0db11ff61ade82efeab..4f0ab8319e35c21454f3a30da83d59f0498a58a7 100644 (file)
@@ -30,7 +30,6 @@
 
 #include "grub_script.tab.h"
 
-#pragma GCC diagnostic ignored "-Wunreachable-code"
 #pragma GCC diagnostic ignored "-Wmissing-declarations"
 
 %}