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:
Snir Sheriber 2017-01-04 15:29:37 +02:00 committed by Frediano Ziglio
parent 0ace8a81c7
commit af390d53ca

View File

@ -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);