xdgmime: Fix unused-variable warning

../gio/xdgmime/xdgmimemagic.c:489:24: warning:
unused variable 'i' [-Wunused-variable]
  489 |           unsigned int i;
      |                        ^
This commit is contained in:
Pablo Correa Gómez 2022-01-18 16:29:28 +01:00
parent e00069010e
commit d4cbe9ce4e
No known key found for this signature in database
GPG Key ID: 7A342565FF635F79

View File

@ -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);