mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-03-28 02:20:04 +01:00
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:
parent
7ae9b768ee
commit
30a31b21fb
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user