Title: [138960] trunk/Source/WebCore
Revision
138960
Author
[email protected]
Date
2013-01-07 10:34:36 -0800 (Mon, 07 Jan 2013)

Log Message

[GTK] Disable deprecation warnings for GStaticRecMutex
https://bugs.webkit.org/show_bug.cgi?id=105918

Patch by Alberto Garcia <[email protected]> on 2013-01-07
Reviewed by Philippe Normand.

GStaticRecMutex is deprecated since glib 2.32, but we can't remove
it because it's needed by GStreamer 0.10. The solution is to
disable the deprecation warnings for that code alone.

* platform/audio/gstreamer/WebKitWebAudioSourceGStreamer.cpp:

Modified Paths

Diff

Modified: trunk/Source/WebCore/ChangeLog (138959 => 138960)


--- trunk/Source/WebCore/ChangeLog	2013-01-07 18:33:05 UTC (rev 138959)
+++ trunk/Source/WebCore/ChangeLog	2013-01-07 18:34:36 UTC (rev 138960)
@@ -1,3 +1,16 @@
+2013-01-07  Alberto Garcia  <[email protected]>
+
+        [GTK] Disable deprecation warnings for GStaticRecMutex
+        https://bugs.webkit.org/show_bug.cgi?id=105918
+
+        Reviewed by Philippe Normand.
+
+        GStaticRecMutex is deprecated since glib 2.32, but we can't remove
+        it because it's needed by GStreamer 0.10. The solution is to
+        disable the deprecation warnings for that code alone.
+
+        * platform/audio/gstreamer/WebKitWebAudioSourceGStreamer.cpp:
+
 2013-01-07  Philip Rogers  <[email protected]>
 
         Refactor client removal in CachedResource::switchClientsToRevalidatedResource

Modified: trunk/Source/WebCore/platform/audio/gstreamer/WebKitWebAudioSourceGStreamer.cpp (138959 => 138960)


--- trunk/Source/WebCore/platform/audio/gstreamer/WebKitWebAudioSourceGStreamer.cpp	2013-01-07 18:33:05 UTC (rev 138959)
+++ trunk/Source/WebCore/platform/audio/gstreamer/WebKitWebAudioSourceGStreamer.cpp	2013-01-07 18:34:36 UTC (rev 138960)
@@ -34,6 +34,11 @@
 #endif
 #include <gst/pbutils/pbutils.h>
 
+// GStaticRecMutex is deprecated in Glib, but required in GStreamer 0.10
+#if (COMPILER(GCC) && GCC_VERSION_AT_LEAST(4, 6, 0) && !defined(GST_API_VERSION_1))
+#pragma GCC diagnostic ignored "-Wdeprecated-declarations"
+#endif
+
 using namespace WebCore;
 
 typedef struct _WebKitWebAudioSrcClass   WebKitWebAudioSrcClass;
_______________________________________________
webkit-changes mailing list
[email protected]
http://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to