Merge branch 'disable-assert-fix' into 'main'

gresource-tool: Fix unused-but-set-variable warn with G_DISABLE_ASSERT

See merge request GNOME/glib!2506
This commit is contained in:
Philip Withnall 2022-02-18 10:38:44 +00:00
commit 3583526c2d

View File

@ -180,7 +180,7 @@ elf_foreach_resource_section (Elf *elf,
SectionCallback callback,
gpointer data)
{
int ret;
int ret G_GNUC_UNUSED /* when compiling with G_DISABLE_ASSERT */;
size_t shstrndx, shnum;
size_t scnidx;
Elf_Scn *scn;