From d4cbe9ce4e855efc15ba0605dddaa04d401f3cc6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pablo=20Correa=20G=C3=B3mez?= Date: Tue, 18 Jan 2022 16:29:28 +0100 Subject: [PATCH] xdgmime: Fix unused-variable warning ../gio/xdgmime/xdgmimemagic.c:489:24: warning: unused variable 'i' [-Wunused-variable] 489 | unsigned int i; | ^ --- gio/xdgmime/xdgmimemagic.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/gio/xdgmime/xdgmimemagic.c b/gio/xdgmime/xdgmimemagic.c index 08b2c6da4..dcee0fd59 100644 --- a/gio/xdgmime/xdgmimemagic.c +++ b/gio/xdgmime/xdgmimemagic.c @@ -486,7 +486,9 @@ _xdg_mime_magic_parse_magic_line (FILE *magic_file, /* We clean up the matchlet, byte swapping if needed */ if (matchlet->word_size > 1) { +#if LITTLE_ENDIAN unsigned int i; +#endif if (matchlet->value_length % matchlet->word_size != 0) { _xdg_mime_magic_matchlet_free (matchlet);