X-Git-Url: http://demsky.eecs.uci.edu/git/?a=blobdiff_plain;f=Makefile.rules;h=396262aad2ec8e67a0e0099e89dfa3b12b28afbd;hb=f8f7086b1b26ec160f682063129ed16d76203574;hp=f0c542b7f82cd28432101bd1caa72db22cfc5b54;hpb=4d7f2ce93860bb587412c0d5bb572e7bdf7eaa96;p=oota-llvm.git diff --git a/Makefile.rules b/Makefile.rules index f0c542b7f82..396262aad2e 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