mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-08-23 17:38:54 +02:00
gio: Fix various compiler warnings when compiling with G_DISABLE_ASSERT
Mostly unused variables which are only used in a g_assert() call otherwise. Signed-off-by: Philip Withnall <withnall@endlessm.com> Helps: #1708
This commit is contained in:
@@ -936,7 +936,7 @@ g_data_input_stream_read_until (GDataInputStream *stream,
|
||||
/* If we're not at end of stream then we have a stop_char to consume. */
|
||||
if (result != NULL && g_buffered_input_stream_get_available (bstream) > 0)
|
||||
{
|
||||
gsize res;
|
||||
gsize res G_GNUC_UNUSED /* when compiling with G_DISABLE_ASSERT */;
|
||||
gchar b;
|
||||
|
||||
res = g_input_stream_read (G_INPUT_STREAM (stream), &b, 1, NULL, NULL);
|
||||
|
Reference in New Issue
Block a user