aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorQuantum <quantum2048@gmail.com>2021-09-09 03:06:17 -0400
committerSimon Ser <contact@emersion.fr>2021-09-09 10:01:48 +0200
commit679f5ed966e0460828e87497754783cc2fc7d731 (patch)
tree336fcdcfed956f29f0f73efe7fd1df2b0df27f2d
parente05c884891ecbc7d69bab25c8886b951d76fc685 (diff)
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.
-rw-r--r--types/wlr_scene.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/types/wlr_scene.c b/types/wlr_scene.c
index f9bdbe60..6a988e53 100644
--- a/types/wlr_scene.c
+++ b/types/wlr_scene.c
@@ -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;