From 425702df9c5590feca8e28e6948d8a3e8edcd649 Mon Sep 17 00:00:00 2001 From: Philip Withnall Date: Fri, 18 Feb 2022 01:40:44 +0000 Subject: [PATCH] gresource-tool: Fix unused-but-set-variable warn with G_DISABLE_ASSERT Signed-off-by: Philip Withnall --- gio/gresource-tool.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gio/gresource-tool.c b/gio/gresource-tool.c index aa718974e..8d738c280 100644 --- a/gio/gresource-tool.c +++ b/gio/gresource-tool.c @@ -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;