From: Jens Georg Date: Fri, 29 Jul 2011 08:56:55 +0000 (+0200) Subject: Be less annoying with deprecation warnings X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=1b9e9b0668feb3618e34d0e9b62152e673eee618;p=profile%2Fivi%2FGSSDP.git Be less annoying with deprecation warnings --- diff --git a/libgssdp/gssdp-client.c b/libgssdp/gssdp-client.c index 363d734..7bbc71d 100644 --- a/libgssdp/gssdp-client.c +++ b/libgssdp/gssdp-client.c @@ -321,8 +321,9 @@ gssdp_client_set_property (GObject *object, g_value_get_string (value)); break; case PROP_MAIN_CONTEXT: - g_warning ("GSSDPClient:main-context is deprecated." - " Please use g_main_context_push_thread_default()"); + if (g_value_get_pointer (value) != NULL) + g_warning ("GSSDPClient:main-context is deprecated." + " Please use g_main_context_push_thread_default()"); break; case PROP_IFACE: client->priv->iface = g_value_dup_string (value);