From 40c10d3f0055ae08dd2857aecda12ce111a5ed89 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Zbigniew=20J=C4=99drzejewski-Szmek?= Date: Wed, 16 May 2018 12:40:07 +0200 Subject: [PATCH] shared/dissect-image: avoid warning about unused function when compiled w/o blkid --- src/shared/dissect-image.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/shared/dissect-image.c b/src/shared/dissect-image.c index 59ee4fe9e58..25d1611f3d2 100644 --- a/src/shared/dissect-image.c +++ b/src/shared/dissect-image.c @@ -96,6 +96,7 @@ not_found: #endif } +#if HAVE_BLKID /* Detect RPMB and Boot partitions, which are not listed by blkid. * See https://github.com/systemd/systemd/issues/5806. */ static bool device_is_mmc_special_partition(struct udev_device *d) { @@ -115,6 +116,7 @@ static bool device_is_block(struct udev_device *d) { return streq(ss, "block"); } +#endif int dissect_image( int fd,