From ace00175c40156e0523de77857f172f3f6a47d32 Mon Sep 17 00:00:00 2001 From: Will Wray Date: Thu, 14 Sep 2017 07:42:49 -0400 Subject: [PATCH] build: silence gcc7's implicit fallthrough warning (#1622) This is a well-intentioned but realistically annoying warning. Unfortunately, it's too easy for a warning in one header to cause dozens of repeated warnings. https://github.com/bitcoin/bitcoin/pull/10489 --- configure.ac | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/configure.ac b/configure.ac index dad34ecd0e..1370101f73 100644 --- a/configure.ac +++ b/configure.ac @@ -202,7 +202,7 @@ fi ## compatibility with the legacy buildsystem. ## if test "x$CXXFLAGS_overridden" = "xno"; then - CXXFLAGS="$CXXFLAGS -Wall -Wextra -Wformat -Wformat-security -Wno-unused-parameter -Wno-self-assign" + CXXFLAGS="$CXXFLAGS -Wall -Wextra -Wformat -Wformat-security -Wno-unused-parameter -Wno-self-assign -Wno-implicit-fallthrough" fi CPPFLAGS="$CPPFLAGS -DHAVE_BUILD_INFO -D__STDC_FORMAT_MACROS"