Bug 1230910 Ignore comment-based gcc warnings draft
authorTom Ritter <tom@mozilla.com>
Wed, 08 Mar 2017 22:36:06 +0000
changeset 656096 b4c69e0b6d374e3aa3fa906ea2d3a019861d5383
parent 656095 6010f7b3e8b9685635ca997b52909583c407c737
child 656097 0027d78823dfc56b435330886de3c84f63bdb314
push id77058
push userbmo:tom@mozilla.com
push dateWed, 30 Aug 2017 18:21:00 +0000
bugs1230910
milestone57.0a1
Bug 1230910 Ignore comment-based gcc warnings MozReview-Commit-ID: EYXOf4fPQWN
security/sandbox/moz.build
--- a/security/sandbox/moz.build
+++ b/security/sandbox/moz.build
@@ -173,8 +173,13 @@ elif CONFIG['OS_ARCH'] == 'WINNT':
         CXXFLAGS += [
             '-wd4275', # non dll-interface class exception used as base for dll-interface class
             '-wd4717', # recursive on all control paths, function will cause runtime stack overflow
             '-wd4996', # 'GetVersionExW': was declared deprecated
             '-wd4302', # 'reinterpret_cast': truncation from 'LPCSTR' to 'WORD'
             '-wd4311', # 'reinterpret_cast': pointer truncation from 'LPOVERLAPPED' to 'DWORD'
             '-wd4312', # 'reinterpret_cast': conversion from 'DWORD' to 'LPOVERLAPPED' of greater size
         ]
+    elif CONFIG['CC_TYPE'] == 'gcc':
+        CXXFLAGS += [
+            '-Wno-comment', # allow multi-line comments
+            '-Wno-unknown-pragmas', # warning push pragmas
+        ]