]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
mkswap: remove unused variable when compile without libblkid
authorKarel Zak <kzak@redhat.com>
Fri, 7 May 2021 18:37:51 +0000 (20:37 +0200)
committerKarel Zak <kzak@redhat.com>
Fri, 7 May 2021 18:37:51 +0000 (20:37 +0200)
Signed-off-by: Karel Zak <kzak@redhat.com>
disk-utils/mkswap.c

index add732a930f40176c49601d20a0fc9b5308e56be..27374fd72122efe908caf805f01e27f43ae9c34e 100644 (file)
@@ -360,10 +360,9 @@ static void wipe_device(struct mkswap_control *ctl)
        int zap = 1;
 #ifdef HAVE_LIBBLKID
        blkid_probe pr = NULL;
+       const char *v = NULL;
 #endif
        if (!ctl->force) {
-               const char *v = NULL;
-
                if (lseek(ctl->fd, 0, SEEK_SET) != 0)
                        errx(EXIT_FAILURE, _("unable to rewind swap-device"));