summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorOmar Sandoval <osandov@fb.com>2019-12-11 16:23:28 -0800
committerMark Wielaard <mark@klomp.org>2019-12-12 12:12:11 +0100
commit277c2c54f5579523649a29d26966bfed35a159bf (patch)
tree6736f5973c31a05fc002657556acdb11e5a9c95f
parentc435a33811428ebad7b8d420821d0b8e10cd84d2 (diff)
libcpu: Compile i386_lex.c with -Wno-implicit-fallthrough
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>
-rw-r--r--libcpu/ChangeLog4
-rw-r--r--libcpu/Makefile.am3
2 files changed, 6 insertions, 1 deletions
diff --git a/libcpu/ChangeLog b/libcpu/ChangeLog
index 52567be8..70796514 100644
--- a/libcpu/ChangeLog
+++ b/libcpu/ChangeLog
@@ -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
diff --git a/libcpu/Makefile.am b/libcpu/Makefile.am
index 03c71ea3..59def7d1 100644
--- a/libcpu/Makefile.am
+++ b/libcpu/Makefile.am
@@ -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