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>
This commit is contained in:
Philip Withnall 2020-09-01 12:23:19 +01:00
parent 7ae9b768ee
commit 30a31b21fb

View File

@ -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)