From 80d2dbe5cfe7c97c446dbbdb5780f64d9062ddd3 Mon Sep 17 00:00:00 2001 From: Eric Christopher Date: Tue, 14 May 2013 21:49:38 +0000 Subject: [PATCH] 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 --- llvm/Makefile.rules | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/llvm/Makefile.rules b/llvm/Makefile.rules index f0c542b7f82c..396262aad2ec 100644 --- a/llvm/Makefile.rules +++ b/llvm/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