mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-03-04 02:18:46 +00:00
Add -Wreorder to the list of C++ warnings.
This built clean with clang, but if we see false positives on the bots then we'll revert and turn it into a compiler specific check. llvm-svn: 181836
This commit is contained in:
parent
429115c97a
commit
79b2259be6
@ -674,7 +674,8 @@ CompileCommonOpts += -Wall -W -Wno-unused-parameter -Wwrite-strings \
|
||||
$(NO_UNINITIALIZED) $(NO_MAYBE_UNINITIALIZED) \
|
||||
$(NO_MISSING_FIELD_INITIALIZERS)
|
||||
# Enable cast-qual for C++; the workaround is to use const_cast.
|
||||
CXX.Flags += -Wcast-qual
|
||||
# Also enable -Wreorder.
|
||||
CXX.Flags += -Wcast-qual -Wreorder
|
||||
|
||||
ifeq ($(HOST_OS),HP-UX)
|
||||
CompileCommonOpts := -D_REENTRANT -D_HPUX_SOURCE
|
||||
|
Loading…
x
Reference in New Issue
Block a user