From e1bd5d35e52aa678c92b1e6fc8fbc7d0bc47c330 Mon Sep 17 00:00:00 2001 From: Emmanuele Bassi Date: Mon, 10 Jul 2017 10:57:05 +0100 Subject: gobject: Ignore deprecation warning for g_object_newv() We're going to replace it once we bump the dependency on GObject, to avoid a nasty ifdef hell. --- json-glib/json-gobject.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'json-glib/json-gobject.c') diff --git a/json-glib/json-gobject.c b/json-glib/json-gobject.c index 923f0e1..a7a53a2 100644 --- a/json-glib/json-gobject.c +++ b/json-glib/json-gobject.c @@ -247,9 +247,11 @@ json_gobject_new (GType gtype, members_left = g_list_prepend (members_left, l->data); } + G_GNUC_BEGIN_IGNORE_DEPRECATIONS retval = g_object_newv (gtype, construct_params->len, (GParameter *) construct_params->data); + G_GNUC_END_IGNORE_DEPRECATIONS /* free the contents of the GArray */ for (i = 0; i < construct_params->len; i++) -- cgit v1.2.1