summaryrefslogtreecommitdiff
path: root/Makefile.rules
diff options
context:
space:
mode:
authorDavid Greene <greened@obbligato.org>2013-01-09 22:11:13 +0000
committerDavid Greene <greened@obbligato.org>2013-01-09 22:11:13 +0000
commitd2f8216ba496b139815aee29052093c1b0d7a996 (patch)
treec67b0c125cbb888ca8dfc850f03512200603e4ea /Makefile.rules
parent78ec0255d9ab184af7799c14d93879e5f21b9007 (diff)
downloadllvm-d2f8216ba496b139815aee29052093c1b0d7a996.tar.gz
llvm-d2f8216ba496b139815aee29052093c1b0d7a996.tar.bz2
llvm-d2f8216ba496b139815aee29052093c1b0d7a996.tar.xz
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
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 c64275f11e..59bab8fcff 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