1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-22 18:54:02 +01:00

Enable -Wcast-qual for C++ files, where intentional qualifier-stripping can

be done with const_cast.

llvm-svn: 101798
This commit is contained in:
Dan Gohman 2010-04-19 18:33:28 +00:00
parent bf15cbd02d
commit c9fe920296

View File

@ -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