From 3113e193c0821cb181f8a97b170144aed444fe62 Mon Sep 17 00:00:00 2001 From: Lubomir Rintel Date: Wed, 7 Feb 2018 19:27:35 +0000 Subject: [PATCH] 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. --- src/platform/nmp-object.h | 3 +-- 1 file changed, 1 insertion(+), 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) \