summaryrefslogtreecommitdiff
path: root/Makefile.rules
diff options
context:
space:
mode:
authorDan Gohman <gohman@apple.com>2010-04-19 18:33:28 +0000
committerDan Gohman <gohman@apple.com>2010-04-19 18:33:28 +0000
commit3072b8aa971b6707189e9aab344475931ebfae5c (patch)
treeb80cf733007d72c1803ba6ed475b360db14fb3ad /Makefile.rules
parentdacd4791739532651e5a9a09864583083aea7291 (diff)
downloadllvm-3072b8aa971b6707189e9aab344475931ebfae5c.tar.gz
llvm-3072b8aa971b6707189e9aab344475931ebfae5c.tar.bz2
llvm-3072b8aa971b6707189e9aab344475931ebfae5c.tar.xz
Enable -Wcast-qual for C++ files, where intentional qualifier-stripping can
be done with const_cast. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@101798 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'Makefile.rules')
-rw-r--r--Makefile.rules2
1 files changed, 2 insertions, 0 deletions
diff --git a/Makefile.rules b/Makefile.rules
index 9414f634ad..0c8469a313 100644
--- a/Makefile.rules
+++ b/Makefile.rules
@@ -633,6 +633,8 @@ CompileCommonOpts += -pedantic -Wno-long-long
endif
CompileCommonOpts += -Wall -W -Wno-unused-parameter -Wwrite-strings \
$(EXTRA_OPTIONS)
+# Enable cast-qual for C++; the workaround is to use const_cast.
+CXX.Flags += -Wcast-qual
ifeq ($(HOST_OS),HP-UX)
CompileCommonOpts := -D_REENTRANT -D_HPUX_SOURCE