From 3e227fb528aada441bfd7061441a59c96b0ed46f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marco=20Trevisan=20=28Trevi=C3=B1o=29?= Date: Thu, 20 Oct 2022 00:32:17 +0200 Subject: [PATCH] glocalfileinfo: Define errsv only if it's used --- gio/glocalfileinfo.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/gio/glocalfileinfo.c b/gio/glocalfileinfo.c index 628ea236b..cb93d7638 100644 --- a/gio/glocalfileinfo.c +++ b/gio/glocalfileinfo.c @@ -1385,7 +1385,10 @@ get_content_type (const char *basename, { guchar sniff_buffer[4096]; gsize sniff_length; - int fd, errsv; +#ifdef O_NOATIME + int errsv; +#endif + int fd; sniff_length = _g_unix_content_type_get_sniff_len (); if (sniff_length == 0 || sniff_length > 4096)