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

Signed-off-by: Philip Withnall <pwithnall@endlessos.org>
This commit is contained in:
Philip Withnall 2022-02-18 01:40:44 +00:00
parent d286ea0c57
commit 425702df9c

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;