Bug 1230910 Ignore comment-based gcc warnings
MozReview-Commit-ID: EYXOf4fPQWN
--- 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
+ ]