diff options
author | Rafael Espindola <rafael.espindola@gmail.com> | 2012-02-28 02:01:55 +0000 |
---|---|---|
committer | Rafael Espindola <rafael.espindola@gmail.com> | 2012-02-28 02:01:55 +0000 |
commit | 33177f591a46e2a476fe8ab49f7055532b48fd40 (patch) | |
tree | 71cc9c3d00c6f7a809f35bfe891a0cb2dbfcccc8 /autoconf | |
parent | 9ca12d2e2f14b0b59c839943e58d8aa5d1a271cb (diff) | |
download | external_llvm-33177f591a46e2a476fe8ab49f7055532b48fd40.zip external_llvm-33177f591a46e2a476fe8ab49f7055532b48fd40.tar.gz external_llvm-33177f591a46e2a476fe8ab49f7055532b48fd40.tar.bz2 |
Enable -Wcovered-switch-default as it matches the switch style used in llvm.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@151609 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'autoconf')
-rw-r--r-- | autoconf/configure.ac | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/autoconf/configure.ac b/autoconf/configure.ac index 3a86531..b28508e 100644 --- a/autoconf/configure.ac +++ b/autoconf/configure.ac @@ -1115,7 +1115,8 @@ dnl Check optional compiler flags. AC_MSG_CHECKING([optional compiler flags]) CXX_FLAG_CHECK(NO_VARIADIC_MACROS, [-Wno-variadic-macros]) CXX_FLAG_CHECK(NO_MISSING_FIELD_INITIALIZERS, [-Wno-missing-field-initializers]) -AC_MSG_RESULT([$NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS]) +CXX_FLAG_CHECK(COVERED_SWITCH_DEFAULT, [-Wcovered-switch-default]) +AC_MSG_RESULT([$NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS $COVERED_SWITCH_DEFAULT]) dnl===-----------------------------------------------------------------------=== dnl=== |