summaryrefslogtreecommitdiff
path: root/Makefile.rules
diff options
context:
space:
mode:
authorEric Christopher <echristo@gmail.com>2015-08-07 16:44:47 +0000
committerEric Christopher <echristo@gmail.com>2015-08-07 16:44:47 +0000
commit9097e5d14ff817a85bf9e519409e78df9d71e03d (patch)
treeb821e876ff6af20a4d418f814a0714d15a2f0f01 /Makefile.rules
parent0b35ff9dd450c06aeea3673239e76af8c3ac9ab2 (diff)
We're actually -Wmissing-field-initializers clean thanks to the cmake
build so check and turn on -Wmissing-field-initializers. While there, reorganize the conditional warning code based on compiler to be a bit more obvious and inside a switch statement. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@244330 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'Makefile.rules')
-rw-r--r--Makefile.rules2
1 files changed, 1 insertions, 1 deletions
diff --git a/Makefile.rules b/Makefile.rules
index 24cac3b3765..42d6a96cf52 100644
--- a/Makefile.rules
+++ b/Makefile.rules
@@ -686,7 +686,7 @@ endif
CompileCommonOpts += -Wall -W -Wno-unused-parameter -Wwrite-strings \
$(EXTRA_OPTIONS) $(COVERED_SWITCH_DEFAULT) \
$(NO_UNINITIALIZED) $(NO_MAYBE_UNINITIALIZED) \
- $(NO_MISSING_FIELD_INITIALIZERS) $(NO_COMMENT)
+ $(MISSING_FIELD_INITIALIZERS) $(NO_COMMENT)
# Enable cast-qual for C++; the workaround is to use const_cast.
CXX.Flags += -Wcast-qual