platform/nmp-object: make nmp_object_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:27:35 +00:00
parent 411e72b3c9
commit 3113e193c0

View file

@ -457,11 +457,10 @@ nmp_object_ref (const NMPObject *obj)
return (const NMPObject *) nm_dedup_multi_obj_ref ((const NMDedupMultiObj *) obj);
}
static inline const NMPObject *
static inline void
nmp_object_unref (const NMPObject *obj)
{
nm_dedup_multi_obj_unref ((const NMDedupMultiObj *) obj);
return NULL;
}
#define nm_clear_nmp_object(ptr) \