[json-glib: 8/11] gobject: Ignore deprecation warning for g_object_newv()
- From: Emmanuele Bassi <ebassi src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [json-glib: 8/11] gobject: Ignore deprecation warning for g_object_newv()
- Date: Mon, 10 Jul 2017 15:22:46 +0000 (UTC)
commit e1bd5d35e52aa678c92b1e6fc8fbc7d0bc47c330
Author: Emmanuele Bassi <ebassi gnome org>
Date: Mon Jul 10 10:57:05 2017 +0100
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 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++)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]