From 737acc78078d0ee9e03cd17bbcf73cd3debdeb18 Mon Sep 17 00:00:00 2001 From: Jeremy Allison Date: Mon, 18 Jun 2012 14:37:15 -0700 Subject: Fix warning: variable ‘status’ set but not used. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- source3/utils/net_g_lock.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'source3/utils') diff --git a/source3/utils/net_g_lock.c b/source3/utils/net_g_lock.c index e51a1ae28d..05a7392eb9 100644 --- a/source3/utils/net_g_lock.c +++ b/source3/utils/net_g_lock.c @@ -125,7 +125,6 @@ static int net_g_lock_dump(struct net_context *c, int argc, const char **argv) struct tevent_context *ev = NULL; struct messaging_context *msg = NULL; struct g_lock_ctx *g_ctx = NULL; - NTSTATUS status; int ret = -1; if (argc != 1) { @@ -137,7 +136,7 @@ static int net_g_lock_dump(struct net_context *c, int argc, const char **argv) goto done; } - status = g_lock_dump(g_ctx, argv[0], net_g_lock_dump_fn, NULL); + (void)g_lock_dump(g_ctx, argv[0], net_g_lock_dump_fn, NULL); ret = 0; done: -- cgit