From 679f5ed966e0460828e87497754783cc2fc7d731 Mon Sep 17 00:00:00 2001 From: Quantum Date: Thu, 9 Sep 2021 03:06:17 -0400 Subject: [PATCH] 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. --- types/wlr_scene.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;