diff options
author | Eric Christopher <echristo@gmail.com> | 2014-11-05 00:35:15 +0000 |
---|---|---|
committer | Eric Christopher <echristo@gmail.com> | 2014-11-05 00:35:15 +0000 |
commit | 4cd064b8e86f3d52e9b78e329059bdfffd15d52e (patch) | |
tree | a05a8c175f89dc61b2475a120ba3440579b9d31b /Makefile.rules | |
parent | cafa378fe005c3f6668c7ab84dbbbaa67b18d0ed (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.rules | 2 |
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 |