mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-08-20 23:58: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:
@@ -648,8 +648,10 @@ key_state_serialise (KeyState *state)
|
||||
else
|
||||
{
|
||||
GVariantBuilder builder;
|
||||
gboolean checked G_GNUC_UNUSED /* when compiling with G_DISABLE_ASSERT */;
|
||||
|
||||
g_assert (key_state_check (state, NULL));
|
||||
checked = key_state_check (state, NULL);
|
||||
g_assert (checked);
|
||||
|
||||
g_variant_builder_init (&builder, G_VARIANT_TYPE_TUPLE);
|
||||
|
||||
|
Reference in New Issue
Block a user