[glib: 1/2] gcancellable: Mark a variable as unused if built with G_DISABLE_ASSERT
- From: Simon McVittie <smcv src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glib: 1/2] gcancellable: Mark a variable as unused if built with G_DISABLE_ASSERT
- Date: Tue, 1 Sep 2020 13:55:49 +0000 (UTC)
commit 30a31b21fba84af758175259bbf654bff39400f6
Author: Philip Withnall <withnall endlessm com>
Date: Tue Sep 1 12:23:19 2020 +0100
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>
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)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]