summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPablo Correa Gómez <ablocorrea@hotmail.com>2022-01-19 15:00:24 +0100
committerPablo Correa Gómez <ablocorrea@hotmail.com>2022-01-19 15:00:24 +0100
commit92f6a09fda2b23c2ab95cede8eb0612ca96bd0f7 (patch)
tree4a9127a1542140173379f2c0c136427cd4c59477
parent50a624bdd3ad1807d71178703f456811b7e8fb50 (diff)
xdgmimemagic: Fix unused variable warning when !LITTLE_ENDIAN
-rw-r--r--src/xdgmimemagic.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/xdgmimemagic.c b/src/xdgmimemagic.c
index 712487f..ddf4efb 100644
--- a/src/xdgmimemagic.c
+++ b/src/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);