mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-01-02 11:10:16 +01:00
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:
parent
411e72b3c9
commit
3113e193c0
1 changed files with 1 additions and 2 deletions
|
|
@ -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) \
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue