From 629d734e8343abf82e8213f0dc56e2d316fbe086 Mon Sep 17 00:00:00 2001 From: Edward Hervey Date: Wed, 25 Jan 2012 12:50:44 +0100 Subject: [PATCH] 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(+) diff --git a/gst/adder/gstadder.c b/gst/adder/gstadder.c index 356cb5a0f5..f33b67b07d 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 #include /* strcmp */ diff --git a/tests/examples/audio/audiomix.c b/tests/examples/audio/audiomix.c index 937f4db6f6..4ad1894221 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 #include diff --git a/tests/examples/audio/volume.c b/tests/examples/audio/volume.c index d5bf9edbb0..a5e13c418e 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 diff --git a/tests/examples/seek/jsseek.c b/tests/examples/seek/jsseek.c index fd16c548ed..a2e2ae544a 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 #include diff --git a/tests/examples/seek/scrubby.c b/tests/examples/seek/scrubby.c index 501d5599fd..53a28d5ef5 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 #include #include diff --git a/tests/examples/seek/seek.c b/tests/examples/seek/seek.c index 60c09973e2..3f63f35da6 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 #include diff --git a/tests/icles/test-colorkey.c b/tests/icles/test-colorkey.c index 9d88aec340..4bd3dcb6bb 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 #include diff --git a/tests/icles/test-xoverlay.c b/tests/icles/test-xoverlay.c index c1610b6601..c7dcbd3da5 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 #include