diff options
author | Daniel P. Berrange <berrange@redhat.com> | 2012-02-10 13:49:01 +0000 |
---|---|---|
committer | Daniel P. Berrange <berrange@redhat.com> | 2012-03-13 13:08:52 +0000 |
commit | 1d0659b5b4fa840c7b895d9b169b850ed03f0ef6 (patch) | |
tree | 1da9169851e457f5aa10cf534210844c8060a238 /gtk/spice-audio.c | |
parent | fb413b74fe45c1af636577a59a31c827ef5af996 (diff) |
Fix deprecation warning handling
Various methods are deprecated by using the G_GNUC_DEPRECATED_FOR
macro. Unfortunately this macro was placed in the .c file impl,
instead of the .h file decl. Thus applications building against
SPICE-GTK would never see the deprecation warnings. At the same
time, building SPICE-GTK itself would trigger some of the warnings
preventing use of -Wdeprecated-declarations to detect use of
deprecated GTK functions.
The fix is in multiple parts
* Replace calls to G_GNUC_DEPRECATED_FOR with SPICE_DEPRECATED_FOR
* Move macros from .c to .h files
* Turn SPICE_DEPRECATED_FOR into a no-op if SPICE_NO_DEPRECATED
is defined
* Define SPICE_NO_DEPRECATED when building
Diffstat (limited to 'gtk/spice-audio.c')
-rw-r--r-- | gtk/spice-audio.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/gtk/spice-audio.c b/gtk/spice-audio.c index 3d6e34c..30c2920 100644 --- a/gtk/spice-audio.c +++ b/gtk/spice-audio.c @@ -204,7 +204,6 @@ static void session_enable_audio(GObject *gobject, GParamSpec *pspec, * Returns: a new #SpiceAudio instance or %NULL if no backend or failed. * Deprecated: 0.8: Use spice_audio_get() instead **/ -G_GNUC_DEPRECATED_FOR(spice_audio_get) SpiceAudio *spice_audio_new(SpiceSession *session, GMainContext *context, const char *name) { |