Bug 1230910 Ignore comment-based gcc warnings draft
authorTom Ritter <tom@mozilla.com>
Wed, 08 Mar 2017 22:36:06 +0000
changeset 496076 55cb2b746303809d334ca9c8acae8225fdbebd58
parent 496075 e625f8e7090222263dfb642cad6c98bad69fa9ae
child 496077 acff88cfc746297784c823a060cefcea94b3a10e
push id48518
push userbmo:tom@mozilla.com
push dateThu, 09 Mar 2017 19:30:51 +0000
bugs1230910
milestone52.0.1
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
@@ -170,8 +170,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
+        ]