]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
swaplabel: fix --disable-libuuid compilation
authorKarel Zak <kzak@redhat.com>
Fri, 15 Sep 2017 11:30:40 +0000 (13:30 +0200)
committerKarel Zak <kzak@redhat.com>
Fri, 15 Sep 2017 11:30:40 +0000 (13:30 +0200)
Signed-off-by: Karel Zak <kzak@redhat.com>
disk-utils/swaplabel.c

index 7785bcebcca5769225978b39e9b226ab8957c010..ccc226a02dccbbee5306569fa945cd4b5996a2e2 100644 (file)
@@ -51,7 +51,12 @@ static int print_info(blkid_probe pr)
 }
 
 /* Change the swap partition info */
+#ifdef HAVE_LIBUUID
 static int change_info(const char *devname, const char *label, const char *uuid)
+#else
+static int change_info(const char *devname, const char *label,
+                      const char *uuid __attribute__((__unused__)))
+#endif
 {
        int fd;