diff options
author | Lubomir Rintel <lkundrak@v3.sk> | 2018-02-07 19:27:35 +0000 |
---|---|---|
committer | Lubomir Rintel <lkundrak@v3.sk> | 2018-02-08 17:11:46 +0100 |
commit | 3113e193c0821cb181f8a97b170144aed444fe62 (patch) | |
tree | 181a669242b89b7b71647c7cb04767048c8ea221 /src | |
parent | 411e72b3c9f95082751e9b65efd25d7f194501fc (diff) |
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.
Diffstat (limited to 'src')
-rw-r--r-- | src/platform/nmp-object.h | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/platform/nmp-object.h b/src/platform/nmp-object.h index 39e1d6edf2..8414c1a57f 100644 --- a/src/platform/nmp-object.h +++ b/src/platform/nmp-object.h @@ -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) \ |