Fix Wmaybe-uninitialized warnings

Just a couple of places which shouldn't be possible, so initialized and
added assertions to make sure.

Signed-off-by: Scott Anderson <scott.anderson@collabora.com>
This commit is contained in:
Scott Anderson
2020-01-28 17:18:33 +13:00
committed by Pekka Paalanen
parent f014964f6f
commit 60b6572b35
2 changed files with 5 additions and 1 deletions
+3
View File
@@ -450,6 +450,9 @@ headless_backend_create(struct weston_compositor *compositor,
case HEADLESS_NOOP:
ret = noop_renderer_init(compositor);
break;
default:
assert(0 && "invalid renderer type");
ret = -1;
}
if (ret < 0)