diff options
author | Emmanuele Bassi <ebassi@gnome.org> | 2017-07-10 10:57:05 +0100 |
---|---|---|
committer | Emmanuele Bassi <ebassi@gnome.org> | 2017-07-10 11:03:45 +0100 |
commit | e1bd5d35e52aa678c92b1e6fc8fbc7d0bc47c330 (patch) | |
tree | 78a92f8a46414275f3e8845d80e5cfb575a95e07 /json-glib/json-gobject.c | |
parent | 6aa6a2e894c1f6aee25095dd0dfd94d25a3d45f8 (diff) | |
download | json-glib-e1bd5d35e52aa678c92b1e6fc8fbc7d0bc47c330.tar.gz |
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.
Diffstat (limited to 'json-glib/json-gobject.c')
-rw-r--r-- | json-glib/json-gobject.c | 2 |
1 files changed, 2 insertions, 0 deletions
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++) |