diff --git a/dom/media/webrtc/moz.build b/dom/media/webrtc/moz.build index a0eb26e930e..b04b827c57a 100644 --- a/dom/media/webrtc/moz.build +++ b/dom/media/webrtc/moz.build @@ -60,6 +60,15 @@ EXPORTS.mozilla += [ 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