Bug 1073003 - Disable -Wattribute warnings in media/webrtc. r=bustage
☠☠ backed out by 8dd16d1ec5e2 ☠ ☠
authorBotond Ballo <botond@mozilla.com>
Mon, 22 Dec 2014 21:45:18 -0500
changeset 233947 aef3ce3b89b9ad862b7ce5fdeaabe1c3bfa16e1d
parent 233946 8091cd611acd9109d2e9a522fbb278c5ecf91e8f
child 233948 5ccfc23ed86866509c8e10b14e91cc7163505bb3
push id312
push usermleibovic@mozilla.com
push dateTue, 23 Dec 2014 23:49:08 +0000
reviewersbustage
bugs1073003
milestone37.0a1
Bug 1073003 - Disable -Wattribute warnings in media/webrtc. r=bustage
dom/media/webrtc/moz.build
--- a/dom/media/webrtc/moz.build
+++ b/dom/media/webrtc/moz.build
@@ -55,16 +55,25 @@ UNIFIED_SOURCES += [
 ]
 
 EXPORTS.mozilla += [
     'PeerIdentity.h',
 ]
 
 include('/ipc/chromium/chromium-config.mozbuild')
 
+# Suppress some GCC/clang warnings being treated as errors:
+#  - about attributes on forward declarations for types that are already
+#    defined, which complains about important MOZ_EXPORT attributes for 
+#    android API types
+if CONFIG['GNU_CC'] or CONFIG['CLANG_CL']:
+  CXXFLAGS += [
+    '-Wno-error=attributes'
+  ]
+
 FINAL_LIBRARY = 'xul'
 if CONFIG['OS_ARCH'] == 'WINNT':
     DEFINES['NOMINMAX'] = True
 
 
 if CONFIG['_MSC_VER']:
   CXXFLAGS += [
     '-wd4275', # non dll-interface class used as base for dll-interface class