From e25de114b2cf3192d17c9796082c6d1ebfb5ac33 Mon Sep 17 00:00:00 2001 From: Beniamino Galvani Date: Wed, 27 Sep 2017 14:13:12 +0200 Subject: [PATCH] nm-policy: use nm_g_hash_table_add() instead of g_hash_table_add() MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The return value of g_hash_table_add() was added in GLib 2.40, use the wrapper to avoid compile error on older versions: src/nm-policy.c: In function ‘auto_activate_device’: src/nm-policy.c:1279:7: error: void value not ignored as it ought to be Fixes: a1ea422aadffa808dda780e005969ecadb8c260e --- src/nm-policy.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/nm-policy.c b/src/nm-policy.c index 402dc18f4f..3c569d5974 100644 --- a/src/nm-policy.c +++ b/src/nm-policy.c @@ -1276,7 +1276,7 @@ auto_activate_device (NMPolicy *self, * activation fails in early stages without changing device * state. */ - if (g_hash_table_add (priv->pending_active_connections, ac)) { + if (nm_g_hash_table_add (priv->pending_active_connections, ac)) { g_signal_connect (ac, NM_ACTIVE_CONNECTION_STATE_CHANGED, G_CALLBACK (pending_ac_state_changed), g_object_ref (self)); g_object_weak_ref (G_OBJECT (ac), (GWeakNotify) pending_ac_gone, self);