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 01cee39..28aa96c 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 1d60e9d..4f0ab83 100644 (file)
@@ -30,7 +30,6 @@
 
 #include "grub_script.tab.h"
 
-#pragma GCC diagnostic ignored "-Wunreachable-code"
 #pragma GCC diagnostic ignored "-Wmissing-declarations"
 
 %}