mirror of
https://gitlab.uni-freiburg.de/opensourcevdi/spice
synced 2025-12-30 17:49:02 +00:00
tests: Fix compilation error
Fix compilation error due to -Werror=maybe-uninitialized:
CC test-display-base.o
test-display-base.c: In function 'do_wakeup':
test-display-base.c:579:13: error: 'update' may be used uninitialized...
push_command(&update->ext);
Signed-off-by: Snir Sheriber <ssheribe@redhat.com>
Acked-by: Frediano Ziglio <fziglio@redhat.com>
This commit is contained in:
parent
0ace8a81c7
commit
af390d53ca
@ -573,7 +573,9 @@ static void produce_command(Test *test)
|
||||
update = test_spice_create_update_solid(command->solid.surface_id,
|
||||
command->solid.bbox, command->solid.color);
|
||||
break;
|
||||
default: /* Just to shut up GCC warning (-Wswitch) */
|
||||
default:
|
||||
/* Terminate on unhandled cases - never actually reached */
|
||||
g_assert_not_reached();
|
||||
break;
|
||||
}
|
||||
push_command(&update->ext);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user