From: Karel Zak Date: Fri, 15 Sep 2017 11:30:40 +0000 (+0200) Subject: swaplabel: fix --disable-libuuid compilation X-Git-Tag: v2.31-rc1~74 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=3da94b1114d0a8a7e429b61c85cc8e98c1b1927e;p=thirdparty%2Futil-linux.git swaplabel: fix --disable-libuuid compilation Signed-off-by: Karel Zak --- diff --git a/disk-utils/swaplabel.c b/disk-utils/swaplabel.c index 7785bcebcc..ccc226a02d 100644 --- a/disk-utils/swaplabel.c +++ b/disk-utils/swaplabel.c @@ -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;