Bug 1113210 - Suppress -Wunused-function clang warning about AtkSocketAccessible.cpp's gobject RTTI macros. r=tbsaunde
authorChris Peterson <cpeterson@mozilla.com>
Thu, 18 Dec 2014 12:17:53 -0800
changeset 220564 6db62626c126de94daa88c8576bc4806a3e6887c
parent 220563 13b2284f09c9eaeaf794b751c78bf92321f28386
child 220565 7a5db616bc575cf5fa7035edf4d09aab354a714c
push id10503
push userryanvm@gmail.com
push dateFri, 19 Dec 2014 20:13:42 +0000
treeherderfx-team@98ee95ac6be5 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerstbsaunde
bugs1113210
milestone37.0a1
Bug 1113210 - Suppress -Wunused-function clang warning about AtkSocketAccessible.cpp's gobject RTTI macros. r=tbsaunde
accessible/atk/moz.build
--- a/accessible/atk/moz.build
+++ b/accessible/atk/moz.build
@@ -47,9 +47,13 @@ if CONFIG['MOZ_ENABLE_GTK']:
     CFLAGS += CONFIG['TK_CFLAGS']
     CXXFLAGS += CONFIG['TK_CFLAGS']
 
 if CONFIG['MOZ_ENABLE_DBUS']:
     CXXFLAGS += CONFIG['MOZ_DBUS_CFLAGS']
 
 include('/ipc/chromium/chromium-config.mozbuild')
 
+if CONFIG['CLANG_CXX']:
+    # Suppress clang warning about unused function from gobject's RTTI macros.
+    CXXFLAGS += ['-Wno-unused-function']
+
 FAIL_ON_WARNINGS = True