Fixed #1888 GCC cannot compile due to uninitialized variables (#1889)

This commit is contained in:
Dillen Meijboom 2018-05-02 09:40:45 +00:00 committed by emersion
parent fe9cc21ea7
commit b45e2bd95e

View file

@ -88,6 +88,7 @@ void view_autoconfigure(struct sway_view *view) {
} }
double x, y, width, height; double x, y, width, height;
x = y = width = height = 0;
switch (view->border) { switch (view->border) {
case B_NONE: case B_NONE:
x = view->swayc->x; x = view->swayc->x;