gst-plugins-base: Suppress deprecations in selected files

Edward Hervey bilboed at kemper.freedesktop.org
Wed Jan 25 03:53:10 PST 2012


Module: gst-plugins-base
Branch: master
Commit: 629d734e8343abf82e8213f0dc56e2d316fbe086
URL:    http://cgit.freedesktop.org/gstreamer/gst-plugins-base/commit/?id=629d734e8343abf82e8213f0dc56e2d316fbe086

Author: Edward Hervey <edward.hervey at collabora.co.uk>
Date:   Wed Jan 25 12:50:44 2012 +0100

Suppress deprecations in selected files

---

 gst/adder/gstadder.c            |    5 +++++
 tests/examples/audio/audiomix.c |    3 +++
 tests/examples/audio/volume.c   |    3 +++
 tests/examples/seek/jsseek.c    |    3 +++
 tests/examples/seek/scrubby.c   |    6 ++++++
 tests/examples/seek/seek.c      |    3 +++
 tests/icles/test-colorkey.c     |    3 +++
 tests/icles/test-xoverlay.c     |    3 +++
 8 files changed, 29 insertions(+), 0 deletions(-)

diff --git a/gst/adder/gstadder.c b/gst/adder/gstadder.c
index 356cb5a..f33b67b 100644
--- a/gst/adder/gstadder.c
+++ b/gst/adder/gstadder.c
@@ -43,6 +43,11 @@
 #ifdef HAVE_CONFIG_H
 #include "config.h"
 #endif
+
+/* FIXME 0.11: suppress warnings for deprecated API such as GStaticRecMutex
+ * with newer GLib versions (>= 2.31.0) */
+#define GLIB_DISABLE_DEPRECATION_WARNINGS
+
 #include "gstadder.h"
 #include <gst/audio/audio.h>
 #include <string.h>             /* strcmp */
diff --git a/tests/examples/audio/audiomix.c b/tests/examples/audio/audiomix.c
index 937f4db..4ad1894 100644
--- a/tests/examples/audio/audiomix.c
+++ b/tests/examples/audio/audiomix.c
@@ -23,6 +23,9 @@
 #ifdef HAVE_CONFIG_H
 #include "config.h"
 #endif
+/* FIXME 0.11: suppress warnings for deprecated API such as GStaticRecMutex
+ * with newer GTK versions (>= 3.3.0) */
+#define GDK_DISABLE_DEPRECATION_WARNINGS
 
 #include <string.h>
 #include <gst/gst.h>
diff --git a/tests/examples/audio/volume.c b/tests/examples/audio/volume.c
index d5bf9ed..a5e13c4 100644
--- a/tests/examples/audio/volume.c
+++ b/tests/examples/audio/volume.c
@@ -23,6 +23,9 @@
 #ifdef HAVE_CONFIG_H
 #include "config.h"
 #endif
+/* FIXME 0.11: suppress warnings for deprecated API such as GStaticRecMutex
+ * with newer GTK versions (>= 3.3.0) */
+#define GDK_DISABLE_DEPRECATION_WARNINGS
 
 #include <math.h>
 
diff --git a/tests/examples/seek/jsseek.c b/tests/examples/seek/jsseek.c
index fd16c54..a2e2ae5 100644
--- a/tests/examples/seek/jsseek.c
+++ b/tests/examples/seek/jsseek.c
@@ -24,6 +24,9 @@
 #ifdef HAVE_CONFIG_H
 #include "config.h"
 #endif
+/* FIXME 0.11: suppress warnings for deprecated API such as GStaticRecMutex
+ * with newer GTK versions (>= 3.3.0) */
+#define GDK_DISABLE_DEPRECATION_WARNINGS
 
 #include <glib.h>
 #include <glib/gstdio.h>
diff --git a/tests/examples/seek/scrubby.c b/tests/examples/seek/scrubby.c
index 501d559..53a28d5 100644
--- a/tests/examples/seek/scrubby.c
+++ b/tests/examples/seek/scrubby.c
@@ -1,3 +1,9 @@
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+/* FIXME 0.11: suppress warnings for deprecated API such as GStaticRecMutex
+ * with newer GTK versions (>= 3.3.0) */
+#define GDK_DISABLE_DEPRECATION_WARNINGS
 #include <stdlib.h>
 #include <glib.h>
 #include <gtk/gtk.h>
diff --git a/tests/examples/seek/seek.c b/tests/examples/seek/seek.c
index 60c0997..3f63f35 100644
--- a/tests/examples/seek/seek.c
+++ b/tests/examples/seek/seek.c
@@ -24,6 +24,9 @@
 #ifdef HAVE_CONFIG_H
 #include "config.h"
 #endif
+/* FIXME 0.11: suppress warnings for deprecated API such as GStaticRecMutex
+ * with newer GTK versions (>= 3.3.0) */
+#define GDK_DISABLE_DEPRECATION_WARNINGS
 
 #include <stdlib.h>
 #include <math.h>
diff --git a/tests/icles/test-colorkey.c b/tests/icles/test-colorkey.c
index 9d88aec..4bd3dcb 100644
--- a/tests/icles/test-colorkey.c
+++ b/tests/icles/test-colorkey.c
@@ -22,6 +22,9 @@
 #ifdef HAVE_CONFIG_H
 #include "config.h"
 #endif
+/* FIXME 0.11: suppress warnings for deprecated API such as GStaticRecMutex
+ * with newer GTK versions (>= 3.3.0) */
+#define GDK_DISABLE_DEPRECATION_WARNINGS
 
 #include <stdlib.h>
 #include <string.h>
diff --git a/tests/icles/test-xoverlay.c b/tests/icles/test-xoverlay.c
index c1610b6..c7dcbd3 100644
--- a/tests/icles/test-xoverlay.c
+++ b/tests/icles/test-xoverlay.c
@@ -22,6 +22,9 @@
 #ifdef HAVE_CONFIG_H
 #include "config.h"
 #endif
+/* FIXME 0.11: suppress warnings for deprecated API such as GStaticRecMutex
+ * with newer GTK versions (>= 3.3.0) */
+#define GDK_DISABLE_DEPRECATION_WARNINGS
 
 #include <stdlib.h>
 #include <string.h>



More information about the gstreamer-commits mailing list