scene: fix compile error in release builds

On release builds, gcc detects a variable uninitialized error, and generates
a warning, which gets converted to an error due to -Werror.
master
Quantum 3 years ago committed by Simon Ser
parent e05c884891
commit 679f5ed966

@ -243,7 +243,7 @@ static void _scene_node_damage_whole(struct wlr_scene_node *node,
lx + child->state.x, ly + child->state.y); lx + child->state.x, ly + child->state.y);
} }
int width, height; int width = 0, height = 0;
switch (node->type) { switch (node->type) {
case WLR_SCENE_NODE_ROOT: case WLR_SCENE_NODE_ROOT:
return; return;

Loading…
Cancel
Save