summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLubomir Rintel <lkundrak@v3.sk>2018-02-07 19:27:35 +0000
committerLubomir Rintel <lkundrak@v3.sk>2018-02-08 17:11:46 +0100
commit3113e193c0821cb181f8a97b170144aed444fe62 (patch)
tree181a669242b89b7b71647c7cb04767048c8ea221
parent411e72b3c9f95082751e9b65efd25d7f194501fc (diff)
downloadNetworkManager-3113e193c0821cb181f8a97b170144aed444fe62.tar.gz
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.
-rw-r--r--src/platform/nmp-object.h3
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) \