diff options
author | Philip Withnall <withnall@endlessm.com> | 2020-09-01 12:23:19 +0100 |
---|---|---|
committer | Philip Withnall <withnall@endlessm.com> | 2020-09-01 12:23:19 +0100 |
commit | 30a31b21fba84af758175259bbf654bff39400f6 (patch) | |
tree | 717254e033ea3ebbcdaecce84973d5080a70a899 /gio | |
parent | 7ae9b768ee05e37d9e1f731a151f6e3cf0ddf956 (diff) | |
download | glib-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.c | 2 |
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) |