From ab42b9659d04dab114ebd09f68a4882fea0264b7 Mon Sep 17 00:00:00 2001 From: Lubomir Rintel Date: Mon, 22 Oct 2018 18:21:43 +0200 Subject: [PATCH] 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 (cherry picked from commit 7c7e4cf1343dde0fda3464a5c23b894a6c8c6027) (cherry picked from commit 506f78148839ab8bc898dcd04c79ed76478915c7) (cherry picked from commit 77234c352d5506636103cb61b7cc2c0451a91493) --- src/ndisc/nm-lndp-ndisc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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);