From 30a31b21fba84af758175259bbf654bff39400f6 Mon Sep 17 00:00:00 2001 From: Philip Withnall Date: Tue, 1 Sep 2020 12:23:19 +0100 Subject: [PATCH] gcancellable: Mark a variable as unused if built with G_DISABLE_ASSERT MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit It’s only used in an assertion. This fixes a compiler warning. Signed-off-by: Philip Withnall --- gio/gcancellable.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gio/gcancellable.c b/gio/gcancellable.c index 3008ecf6f..00df6998d 100644 --- a/gio/gcancellable.c +++ b/gio/gcancellable.c @@ -349,7 +349,7 @@ g_cancellable_get_fd (GCancellable *cancellable) { GPollFD pollfd; #ifndef G_OS_WIN32 - gboolean retval; + gboolean retval G_GNUC_UNUSED /* when compiling with G_DISABLE_ASSERT */; #endif if (cancellable == NULL)