diff options
author | Karel Zak | 2017-09-15 13:30:40 +0200 |
---|---|---|
committer | Karel Zak | 2017-09-15 13:30:40 +0200 |
commit | 3da94b1114d0a8a7e429b61c85cc8e98c1b1927e (patch) | |
tree | 3bc2c5bb7a74e89ef957da76ce6c4154079d2a3f /disk-utils | |
parent | misc: cleanup UUID_STR_LEN definitions (diff) | |
download | kernel-qcow2-util-linux-3da94b1114d0a8a7e429b61c85cc8e98c1b1927e.tar.gz kernel-qcow2-util-linux-3da94b1114d0a8a7e429b61c85cc8e98c1b1927e.tar.xz kernel-qcow2-util-linux-3da94b1114d0a8a7e429b61c85cc8e98c1b1927e.zip |
swaplabel: fix --disable-libuuid compilation
Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'disk-utils')
-rw-r--r-- | disk-utils/swaplabel.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/disk-utils/swaplabel.c b/disk-utils/swaplabel.c index 7785bcebc..ccc226a02 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; |