From: Jan Maria Matejka Date: Mon, 17 Dec 2018 11:45:21 +0000 (+0100) Subject: Configure: Don't check for implicit fallthrough unless when debugging. X-Git-Tag: v2.0.5~10^2~84 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=02dcbf343d94dd548605c5efbf724f89d81d7258;p=thirdparty%2Fbird.git Configure: Don't check for implicit fallthrough unless when debugging. --- diff --git a/configure.ac b/configure.ac index da1a8f44d..33bc91014 100644 --- a/configure.ac +++ b/configure.ac @@ -364,6 +364,9 @@ if test "$enable_debug" = yes ; then AC_CHECK_LIB([efence], [malloc]) fi fi +else + BIRD_CHECK_GCC_OPTION([bird_cv_c_option_wno_implicit_fallthrough], [-Wno-implicit-fallthrough]) + BIRD_ADD_GCC_OPTION([bird_cv_c_option_wno_implicit_fallthrough], [-Wno-implicit-fallthrough]) fi CLIENT=birdcl