mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-01-03 05:50:12 +01:00
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:
parent
7f7207f36b
commit
411e72b3c9
2 changed files with 2 additions and 4 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue