From 7bffcf1b5047938fe50feed425323e51e4b6a217 Mon Sep 17 00:00:00 2001 From: Simon McVittie Date: Wed, 2 May 2012 19:06:32 +0100 Subject: [PATCH 5/9] Emit deprecation warnings for TP_ERRORS --- telepathy-glib/errors.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/telepathy-glib/errors.h b/telepathy-glib/errors.h index 73e7da2..c0cc141 100644 --- a/telepathy-glib/errors.h +++ b/telepathy-glib/errors.h @@ -33,13 +33,16 @@ G_BEGIN_DECLS #ifndef TP_DISABLE_DEPRECATED _TP_DEPRECATED_FOR (TP_ERROR) GQuark tp_errors_quark (void); + +/* this is deliberately the old one, so that it expands to a call to a + * deprecated function, so that gcc will warn */ +#define TP_ERRORS (tp_errors_quark ()) #endif GQuark tp_error_quark (void); #define TP_ERROR_PREFIX "org.freedesktop.Telepathy.Error" -#define TP_ERRORS TP_ERROR #define TP_ERROR (tp_error_quark ()) void tp_g_set_error_invalid_handle_type (guint type, GError **error); -- 1.7.10