From e165249fa62b5f0ed77f8875f41d96e614a0e7d8 Mon Sep 17 00:00:00 2001 From: liyun-li Date: Sun, 4 Nov 2018 18:35:37 -0500 Subject: [PATCH] Build reproducibly on Debian unstable branch. This package would not build on Debian's unstable branch because the build treats all warnings as errors. This is caused by the use of `g_type_class_add_private` which was deprecated and replaced by `G_ADD_PRIVATE`. If there's more information you need from me, please let me know :) Happy to help anytime. Reference: https://gitlab.gnome.org/GNOME/glib/commit/7e5db31d36532274c2b2428ef9bace796928785e --- properties/nm-iodine.c | 2 +- src/nm-iodine-service.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/properties/nm-iodine.c b/properties/nm-iodine.c index 50e4036..24de6c3 100644 --- a/properties/nm-iodine.c +++ b/properties/nm-iodine.c @@ -651,7 +651,7 @@ iodine_editor_class_init (IodineEditorClass *req_class) { GObjectClass *object_class = G_OBJECT_CLASS (req_class); - g_type_class_add_private (req_class, sizeof (IodineEditorPrivate)); + G_ADD_PRIVATE (req_class, sizeof (IodineEditorPrivate)); object_class->dispose = dispose; } diff --git a/src/nm-iodine-service.c b/src/nm-iodine-service.c index 705d4fe..cff9867 100644 --- a/src/nm-iodine-service.c +++ b/src/nm-iodine-service.c @@ -662,7 +662,7 @@ nm_iodine_plugin_class_init (NMIodinePluginClass *iodine_class) GObjectClass *object_class = G_OBJECT_CLASS (iodine_class); NMVpnServicePluginClass *parent_class = NM_VPN_SERVICE_PLUGIN_CLASS (iodine_class); - g_type_class_add_private (object_class, sizeof (NMIodinePluginPrivate)); + G_ADD_PRIVATE (object_class, sizeof (NMIodinePluginPrivate)); /* virtual methods */ parent_class->connect = real_connect; -- GitLab