From a2f069d58437b6741c4b26f5f4da65c8c6375b9c Mon Sep 17 00:00:00 2001 From: =?utf8?q?Thomas=20Wei=C3=9Fschuh?= Date: Sun, 24 Dec 2023 11:47:02 +0100 Subject: [PATCH] fdisk: guard posix variable MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Otherwise it can generate a unused variable warning. Signed-off-by: Thomas Weißschuh --- sys-utils/fallocate.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/sys-utils/fallocate.c b/sys-utils/fallocate.c index 86d17dbf1e..19fb87ff79 100644 --- a/sys-utils/fallocate.c +++ b/sys-utils/fallocate.c @@ -290,7 +290,9 @@ int main(int argc, char **argv) int fd; int mode = 0; int dig = 0; - int posix = 0; +#ifdef HAVE_POSIX_FALLOCATE + int posix = 0; +#endif loff_t length = -2LL; loff_t offset = 0; -- 2.47.3