summaryrefslogtreecommitdiff
path: root/Makefile.rules
diff options
context:
space:
mode:
authorEric Christopher <echristo@gmail.com>2013-05-14 21:49:38 +0000
committerEric Christopher <echristo@gmail.com>2013-05-14 21:49:38 +0000
commitf8f7086b1b26ec160f682063129ed16d76203574 (patch)
treeb853e075d452d714d795b026e873387d0557ce5f /Makefile.rules
parent4d7f2ce93860bb587412c0d5bb572e7bdf7eaa96 (diff)
downloadllvm-f8f7086b1b26ec160f682063129ed16d76203574.tar.gz
llvm-f8f7086b1b26ec160f682063129ed16d76203574.tar.bz2
llvm-f8f7086b1b26ec160f682063129ed16d76203574.tar.xz
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. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@181836 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'Makefile.rules')
-rw-r--r--Makefile.rules3
1 files changed, 2 insertions, 1 deletions
diff --git a/Makefile.rules b/Makefile.rules
index f0c542b7f8..396262aad2 100644
--- a/Makefile.rules
+++ b/Makefile.rules
@@ -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