mirror of
https://github.com/hyprwm/wlroots-hyprland.git
synced 2024-12-23 02:19:49 +01:00
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.
This commit is contained in:
parent
e05c884891
commit
679f5ed966
1 changed files with 1 additions and 1 deletions
|
@ -243,7 +243,7 @@ static void _scene_node_damage_whole(struct wlr_scene_node *node,
|
|||
lx + child->state.x, ly + child->state.y);
|
||||
}
|
||||
|
||||
int width, height;
|
||||
int width = 0, height = 0;
|
||||
switch (node->type) {
|
||||
case WLR_SCENE_NODE_ROOT:
|
||||
return;
|
||||
|
|
Loading…
Reference in a new issue