shared/utils/dedup-multi: make nm_dedup_multi_obj_unref() return void

This makes its prototype compatible with GDestroyNotify so that GCC 8.0
won't warn.

The return value is not used anywhere and the unref() functions typically
don't return any.
This commit is contained in:
Lubomir Rintel 2018-02-07 19:23:17 +00:00
parent 7f7207f36b
commit 411e72b3c9
2 changed files with 2 additions and 4 deletions

View file

@ -877,7 +877,7 @@ nm_dedup_multi_index_obj_intern (NMDedupMultiIndex *self,
return obj_new;
}
const NMDedupMultiObj *
void
nm_dedup_multi_obj_unref (const NMDedupMultiObj *obj)
{
if (obj) {
@ -899,8 +899,6 @@ again:
obj->klass->obj_destroy ((NMDedupMultiObj *) obj);
}
}
return NULL;
}
gboolean

View file

@ -97,7 +97,7 @@ nm_dedup_multi_obj_ref (const NMDedupMultiObj *obj)
return obj;
}
const NMDedupMultiObj *nm_dedup_multi_obj_unref (const NMDedupMultiObj *obj);
void nm_dedup_multi_obj_unref (const NMDedupMultiObj *obj);
const NMDedupMultiObj *nm_dedup_multi_obj_clone (const NMDedupMultiObj *obj);
gboolean nm_dedup_multi_obj_needs_clone (const NMDedupMultiObj *obj);