summaryrefslogtreecommitdiff
path: root/gio
diff options
context:
space:
mode:
authorPhilip Withnall <withnall@endlessm.com>2020-09-01 12:23:19 +0100
committerPhilip Withnall <withnall@endlessm.com>2020-09-01 12:23:19 +0100
commit30a31b21fba84af758175259bbf654bff39400f6 (patch)
tree717254e033ea3ebbcdaecce84973d5080a70a899 /gio
parent7ae9b768ee05e37d9e1f731a151f6e3cf0ddf956 (diff)
downloadglib-30a31b21fba84af758175259bbf654bff39400f6.tar.gz
gcancellable: Mark a variable as unused if built with G_DISABLE_ASSERT
It’s only used in an assertion. This fixes a compiler warning. Signed-off-by: Philip Withnall <withnall@endlessm.com>
Diffstat (limited to 'gio')
-rw-r--r--gio/gcancellable.c2
1 files changed, 1 insertions, 1 deletions
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)