Fix warning: variable ‘status’ set but not used.
authorJeremy Allison <jra@samba.org>
Mon, 18 Jun 2012 21:37:15 +0000 (14:37 -0700)
committerJeremy Allison <jra@samba.org>
Tue, 19 Jun 2012 17:27:23 +0000 (10:27 -0700)
source3/utils/net_g_lock.c

index e51a1ae28d163e25c032efda25b3a4434767e648..05a7392eb91a1f1b7fb5664b8a6e7a3da4013c8a 100644 (file)
@@ -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: