From d2f8216ba496b139815aee29052093c1b0d7a996 Mon Sep 17 00:00:00 2001 From: David Greene Date: Wed, 9 Jan 2013 22:11:13 +0000 Subject: Disable -Wuninitialized for gcc If the compiler is gcc, disable variants of -Wuninitialized depending on the gcc version. This gets a lot of false positive warnings out of the build. Generate a new configure for the gcc -Wno-uninitialized fix. Pick up -Wno-uninitialized from configure Add the option -Wno[-maybe]-uninitialized as determined by configure. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@172006 91177308-0d34-0410-b5e6-96231b3b80d8 --- Makefile.rules | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'Makefile.rules') diff --git a/Makefile.rules b/Makefile.rules index c64275f..59bab8f 100644 --- a/Makefile.rules +++ b/Makefile.rules @@ -668,7 +668,8 @@ ifndef NO_PEDANTIC CompileCommonOpts += -pedantic -Wno-long-long endif CompileCommonOpts += -Wall -W -Wno-unused-parameter -Wwrite-strings \ - $(EXTRA_OPTIONS) $(COVERED_SWITCH_DEFAULT) + $(EXTRA_OPTIONS) $(COVERED_SWITCH_DEFAULT) \ + $(NO_UNINITIALIZED) $(NO_MAYBE_UNINITIALIZED) # Enable cast-qual for C++; the workaround is to use const_cast. CXX.Flags += -Wcast-qual -- cgit v1.1