[llvm-commits] [PATCH 3/3] Pick up -Wno-uninitialized from configure
David Greene
dag at cray.com
Tue Jan 8 13:11:07 PST 2013
Add the option -Wno[-maybe]-uninitialized as determined by configure.
---
llvm/Makefile.config.in | 4 ++++
llvm/Makefile.rules | 3 ++-
2 files changed, 6 insertions(+), 1 deletions(-)
diff --git a/llvm/Makefile.config.in b/llvm/Makefile.config.in
index 3c4f7b7..5cb3c58 100644
--- a/llvm/Makefile.config.in
+++ b/llvm/Makefile.config.in
@@ -358,6 +358,10 @@ NO_MISSING_FIELD_INITIALIZERS = @NO_MISSING_FIELD_INITIALIZERS@
NO_VARIADIC_MACROS = @NO_VARIADIC_MACROS@
# -Wcovered-switch-default
COVERED_SWITCH_DEFAULT = @COVERED_SWITCH_DEFAULT@
+# -Wno-uninitialized
+NO_UNINITIALIZED = @NO_UNINITIALIZED@
+# -Wno-maybe-uninitialized
+NO_MAYBE_UNINITIALIZED = @NO_MAYBE_UNINITIALIZED@
# Was polly found in tools/polly?
LLVM_HAS_POLLY = @LLVM_HAS_POLLY@
diff --git a/llvm/Makefile.rules b/llvm/Makefile.rules
index c64275f..59bab8f 100644
--- a/llvm/Makefile.rules
+++ b/llvm/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
--
1.7.8.4
More information about the llvm-commits
mailing list