projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
dacd479
)
Enable -Wcast-qual for C++ files, where intentional qualifier-stripping can
author
Dan Gohman
<gohman@apple.com>
Mon, 19 Apr 2010 18:33:28 +0000
(18:33 +0000)
committer
Dan Gohman
<gohman@apple.com>
Mon, 19 Apr 2010 18:33:28 +0000
(18:33 +0000)
be done with const_cast.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@101798
91177308
-0d34-0410-b5e6-
96231b3b80d8
Makefile.rules
patch
|
blob
|
history
diff --git
a/Makefile.rules
b/Makefile.rules
index 9414f634adc077731fb18a6eaae8b1f2c380d3f7..0c8469a3133c261b58e0a4aa60876bd75de23d79 100644
(file)
--- 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