mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-11-02 01:12:17 +01:00
glib: 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:
@@ -362,7 +362,7 @@ static void
|
||||
token_stream_assert (TokenStream *stream,
|
||||
const gchar *token)
|
||||
{
|
||||
gboolean correct_token;
|
||||
gboolean correct_token G_GNUC_UNUSED /* when compiling with G_DISABLE_ASSERT */;
|
||||
|
||||
correct_token = token_stream_consume (stream, token);
|
||||
g_assert (correct_token);
|
||||
|
||||
Reference in New Issue
Block a user