summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLubomir Rintel <lkundrak@v3.sk>2018-10-22 18:21:43 +0200
committerLubomir Rintel <lkundrak@v3.sk>2018-10-22 18:23:46 +0200
commit7c7e4cf1343dde0fda3464a5c23b894a6c8c6027 (patch)
tree4f007d4a409301bedf0361f2850e2d7e4de7721c
parent301d703bc3ab010c572a2b71af88ed4eff36baaa (diff)
downloadNetworkManager-7c7e4cf1343dde0fda3464a5c23b894a6c8c6027.tar.gz
ndisc: mark a keep-alive variable unused
Fixed build with clang: src/ndisc/nm-lndp-ndisc.c:494:27: error: unused variable 'ndisc_keep_alive' [-Werror,-Wunused-variable] gs_unref_object NMNDisc *ndisc_keep_alive = g_object_ref (ndisc); ^ Fixes: 9aa628cedb707e9c4f0e0dba437ec22375a0032e
-rw-r--r--src/ndisc/nm-lndp-ndisc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ndisc/nm-lndp-ndisc.c b/src/ndisc/nm-lndp-ndisc.c
index 9f427d4d59..e1003ad1c4 100644
--- a/src/ndisc/nm-lndp-ndisc.c
+++ b/src/ndisc/nm-lndp-ndisc.c
@@ -491,7 +491,7 @@ receive_rs (struct ndp *ndp, struct ndp_msg *msg, gpointer user_data)
static gboolean
event_ready (GIOChannel *source, GIOCondition condition, NMNDisc *ndisc)
{
- gs_unref_object NMNDisc *ndisc_keep_alive = g_object_ref (ndisc);
+ _nm_unused gs_unref_object NMNDisc *ndisc_keep_alive = g_object_ref (ndisc);
nm_auto_pop_netns NMPNetns *netns = NULL;
NMLndpNDiscPrivate *priv = NM_LNDP_NDISC_GET_PRIVATE ((NMLndpNDisc *) ndisc);