bug 1482792 - Only enable -Wno-unused-private-field for clang. Doesn't exit (yet?) in gcc r=jya
authorSylvestre Ledru <sledru@mozilla.com>
Mon, 13 Aug 2018 08:49:42 +0000
changeset 486289 7b6834fceadea39c08a4a5dd819f418e53cb2b2e
parent 486288 6c752dc707f5bc5557bc558d8737c143c658727c
child 486290 07a842e3bf52cd8d1169951d00eb977793d03f72
push id9719
push userffxbld-merge
push dateFri, 24 Aug 2018 17:49:46 +0000
treeherdermozilla-beta@719ec98fba77 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersjya
bugs1482792
milestone63.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
bug 1482792 - Only enable -Wno-unused-private-field for clang. Doesn't exit (yet?) in gcc r=jya Differential Revision: https://phabricator.services.mozilla.com/D3190
dom/media/gtest/moz.build
--- a/dom/media/gtest/moz.build
+++ b/dom/media/gtest/moz.build
@@ -82,12 +82,15 @@ LOCAL_INCLUDES += [
     '/dom/media/platforms/agnostic',
     '/security/certverifier',
     '/security/pkix/include',
 ]
 
 FINAL_LIBRARY = 'xul-gtest'
 
 if CONFIG['CC_TYPE'] in ('clang', 'gcc'):
-    CXXFLAGS += ['-Wno-error=shadow', '-Wno-unused-private-field']
+    CXXFLAGS += ['-Wno-error=shadow']
+
+if CONFIG['CC_TYPE'] == 'clang':
+    CXXFLAGS += ['-Wno-unused-private-field']
 
 if CONFIG['CC_TYPE'] == 'clang-cl':
     AllowCompilerWarnings()  # workaround for bug 1090497