]> git.ipfire.org Git - thirdparty/elfutils.git/commitdiff
libcpu: Compile i386_lex.c with -Wno-implicit-fallthrough
authorOmar Sandoval <osandov@fb.com>
Thu, 12 Dec 2019 00:23:28 +0000 (16:23 -0800)
committerMark Wielaard <mark@klomp.org>
Thu, 12 Dec 2019 11:12:11 +0000 (12:12 +0100)
elfutils is compiled with -Wimplicit-fallthrough=5, so the fallthrough
comment in i386_lex.c (generated by flex) doesn't prevent the implicit
fallthrough warning. Add -Wno-implicit-fallthrough to i386_lex_CFLAGS.

Signed-off-by: Omar Sandoval <osandov@fb.com>
libcpu/ChangeLog
libcpu/Makefile.am

index 52567be8a16f3bfeaa84b3e2941501852523360f..7079651403903c5c9d958353138e2b047a2924a1 100644 (file)
@@ -1,3 +1,7 @@
+2019-12-11  Omar Sandoval  <osandov@fb.com>
+
+       * Makefile.am (i386_lex_CFLAGS): Add -Wno-implicit-fallthrough.
+
 2019-10-17  Mark Wielaard  <mark@klomp.org>
 
        * i386_data.h (FCT_sel): Check for param_start + 2 >= end instead
index 03c71ea3d5ac93bc3a4f99cbdc3d2fda5312a145..59def7d1bcf20d9c0cd3c46cfc136e44cf37ee61 100644 (file)
@@ -81,7 +81,8 @@ i386_lex_no_Werror = yes
 
 libeu = ../lib/libeu.a
 
-i386_lex_CFLAGS = -Wno-unused-label -Wno-unused-function -Wno-sign-compare
+i386_lex_CFLAGS = -Wno-unused-label -Wno-unused-function -Wno-sign-compare \
+                 -Wno-implicit-fallthrough
 i386_parse.o: i386_parse.c i386.mnemonics
 i386_parse_CFLAGS = -DNMNES="`wc -l < i386.mnemonics`"
 i386_lex.o: i386_parse.h