diff options
author | Jonathon Jongsma <jjongsma@redhat.com> | 2016-04-20 15:12:47 -0500 |
---|---|---|
committer | Jonathon Jongsma <jjongsma@redhat.com> | 2016-09-01 17:42:59 -0500 |
commit | d16264c9bcdd8cc3b4f7b1a9f91fbd3cc84cd56e (patch) | |
tree | 27ff7c271c036a7a7fcde1faaa89b9b253bf46d6 | |
parent | 75258dc50bc29c585b2029f117cd461c795bbca3 (diff) |
Print warnings on untested code pathsrefactory-20160901
-rw-r--r-- | server/display-channel.c | 3 | ||||
-rw-r--r-- | server/sound.c | 1 |
2 files changed, 4 insertions, 0 deletions
diff --git a/server/display-channel.c b/server/display-channel.c index ac4d92b5..90f910ab 100644 --- a/server/display-channel.c +++ b/server/display-channel.c @@ -1987,6 +1987,9 @@ void display_channel_create_surface(DisplayChannel *display, uint32_t surface_id QXLInstance *qxl = common_graphics_channel_get_qxl(COMMON_GRAPHICS_CHANNEL(display)); RedsState *reds = red_qxl_get_server(qxl->st); GArray *renderers = reds_get_renderers(reds); + /* These days, noone is trying to use multiple renderers, the software one + * is always used */ + g_warn_if_fail(renderers->len == 1); for (i = 0; i < renderers->len; i++) { uint32_t renderer = g_array_index(renderers, uint32_t, i); surface->context.canvas = create_canvas_for_surface(display, surface, renderer); diff --git a/server/sound.c b/server/sound.c index 65cf5c3e..ad03df38 100644 --- a/server/sound.c +++ b/server/sound.c @@ -1638,6 +1638,7 @@ void snd_set_playback_compression(int on) SndWorker *now = workers; for (; now; now = now->next) { + g_critical("untested code path"); uint32_t type; g_object_get(now->base_channel, "channel-type", &type, NULL); if (type == SPICE_CHANNEL_PLAYBACK && now->connection) { |