diff options
author | Dan Gohman <gohman@apple.com> | 2010-04-19 18:33:28 +0000 |
---|---|---|
committer | Dan Gohman <gohman@apple.com> | 2010-04-19 18:33:28 +0000 |
commit | 617cf8a1ad6f5912e6d9d17f4bfc51f846ea3578 (patch) | |
tree | b80cf733007d72c1803ba6ed475b360db14fb3ad | |
parent | 34ef135687a436a28349b27489314b9f3e421b19 (diff) | |
download | external_llvm-617cf8a1ad6f5912e6d9d17f4bfc51f846ea3578.zip external_llvm-617cf8a1ad6f5912e6d9d17f4bfc51f846ea3578.tar.gz external_llvm-617cf8a1ad6f5912e6d9d17f4bfc51f846ea3578.tar.bz2 |
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
-rw-r--r-- | Makefile.rules | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Makefile.rules b/Makefile.rules index 9414f63..0c8469a 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 |