summaryrefslogtreecommitdiff
path: root/Makefile.rules
diff options
context:
space:
mode:
authorRichard Smith <richard-llvm@metafoo.co.uk>2013-01-31 22:19:12 +0000
committerRichard Smith <richard-llvm@metafoo.co.uk>2013-01-31 22:19:12 +0000
commit1983f54daebc5b4ba0ebb3fbc6ec0abb083f8908 (patch)
tree429dfd1754c409d3e317d21e0d84475fd75410e7 /Makefile.rules
parentac1b2e5550d395f8a150830d9513ee62d678597b (diff)
downloadllvm-1983f54daebc5b4ba0ebb3fbc6ec0abb083f8908.tar.gz
llvm-1983f54daebc5b4ba0ebb3fbc6ec0abb083f8908.tar.bz2
llvm-1983f54daebc5b4ba0ebb3fbc6ec0abb083f8908.tar.xz
Add -Wno-nested-anon-types to -pedantic builds of LLVM. This Clang warning
catches uses of an extremely minor and widely-available C++ extension (which every C++ compiler I could find supports, but EDG and Clang reject in strict mode). The diagnosed code pattern looks like this: struct X { union { struct { int a; int b; } S; }; }; git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@174103 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 1e64600941..6abd3934c7 100644
--- a/Makefile.rules
+++ b/Makefile.rules
@@ -665,7 +665,7 @@ LD.Flags += $(EXTRA_LD_OPTIONS)
endif
ifndef NO_PEDANTIC
-CompileCommonOpts += -pedantic -Wno-long-long
+CompileCommonOpts += -pedantic -Wno-long-long $(NO_NESTED_ANON_TYPES)
endif
CompileCommonOpts += -Wall -W -Wno-unused-parameter -Wwrite-strings \
$(EXTRA_OPTIONS) $(COVERED_SWITCH_DEFAULT) \