diff options
author | Rafael Espindola <rafael.espindola@gmail.com> | 2012-02-28 23:32:06 +0000 |
---|---|---|
committer | Rafael Espindola <rafael.espindola@gmail.com> | 2012-02-28 23:32:06 +0000 |
commit | 9993a3aebb27c5cac55429a23af2d2a0f129cb95 (patch) | |
tree | a6d7ba55042342df7c025027bedb4c583da2c492 /projects/sample/Makefile.llvm.rules | |
parent | 1485455be0310c6b24f096823029e08867531016 (diff) | |
download | llvm-9993a3aebb27c5cac55429a23af2d2a0f129cb95.tar.gz llvm-9993a3aebb27c5cac55429a23af2d2a0f129cb95.tar.bz2 llvm-9993a3aebb27c5cac55429a23af2d2a0f129cb95.tar.xz |
Enable -Wcovered-switch-default again, but add -Werror to the checks to make
sure we don't use it with compilers that don't support it.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@151665 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'projects/sample/Makefile.llvm.rules')
-rw-r--r-- | projects/sample/Makefile.llvm.rules | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/projects/sample/Makefile.llvm.rules b/projects/sample/Makefile.llvm.rules index f496bd4bc6..7467d84fcd 100644 --- a/projects/sample/Makefile.llvm.rules +++ b/projects/sample/Makefile.llvm.rules @@ -571,7 +571,7 @@ ifndef NO_PEDANTIC CompileCommonOpts += -pedantic -Wno-long-long endif CompileCommonOpts += -Wall -W -Wno-unused-parameter -Wwrite-strings \ - $(EXTRA_OPTIONS) + $(EXTRA_OPTIONS) $(COVERED_SWITCH_DEFAULT) # Enable cast-qual for C++; the workaround is to use const_cast. CXX.Flags += -Wcast-qual |