From 8282325569662b84c31433f34da466aa358592c6 Mon Sep 17 00:00:00 2001 From: Yorick Peterse Date: Sat, 17 Jun 2017 13:46:59 +0200 Subject: [PATCH] Don't warn for implicit fallthroughs This is the result of Ragel output which we can't control. --- ext/c/extconf.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ext/c/extconf.rb b/ext/c/extconf.rb index 36275ae..34fbac6 100644 --- a/ext/c/extconf.rb +++ b/ext/c/extconf.rb @@ -1,7 +1,7 @@ require 'mkmf' if RbConfig::CONFIG['CC'] =~ /clang|gcc/ - $CFLAGS << ' -pedantic' + $CFLAGS << ' -pedantic -Wno-implicit-fallthrough' end if ENV['DEBUG']