summaryrefslogtreecommitdiff
path: root/Makefile.rules
diff options
context:
space:
mode:
authorEric Christopher <echristo@gmail.com>2014-11-05 00:35:15 +0000
committerEric Christopher <echristo@gmail.com>2014-11-05 00:35:15 +0000
commit4cd064b8e86f3d52e9b78e329059bdfffd15d52e (patch)
treea05a8c175f89dc61b2475a120ba3440579b9d31b /Makefile.rules
parentcafa378fe005c3f6668c7ab84dbbbaa67b18d0ed (diff)
Add a check for misbehaving -Wcomment from gcc-4.7 and add
-Wno-comment to the compilation flags if so. Patch by Filipe Cabecinhas, configure regenerated by me. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@221323 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 7da2dc844a7..c8c971f6b28 100644
--- a/Makefile.rules
+++ b/Makefile.rules
@@ -679,7 +679,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_MISSING_FIELD_INITIALIZERS) $(NO_COMMENT)
# Enable cast-qual for C++; the workaround is to use const_cast.
CXX.Flags += -Wcast-qual