From 852bad1ef49a6f64ce199ca4202b495b77e809a6 Mon Sep 17 00:00:00 2001 From: Milan Broz Date: Fri, 21 Feb 2020 08:28:55 +0100 Subject: [PATCH] Fix acompiler warning with --disable-blkid. --- lib/utils_blkid.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/utils_blkid.c b/lib/utils_blkid.c index 06d9788c..0e3e7fd4 100644 --- a/lib/utils_blkid.c +++ b/lib/utils_blkid.c @@ -310,9 +310,9 @@ int blk_supported(void) off_t blk_get_offset(struct blkid_handle *h) { - const char *offset; off_t offset_value = -1; #ifdef HAVE_BLKID + const char *offset; if (blk_is_superblock(h)) { if (!blkid_probe_lookup_value(h->pr, "SBMAGIC_OFFSET", &offset, NULL)) offset_value = strtoll(offset, NULL, 10);