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:
committed by
Pekka Paalanen
parent
f014964f6f
commit
60b6572b35
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user