From fdce7c85ae3103e12af98446dcb77773f87cf4c7 Mon Sep 17 00:00:00 2001 From: NeilBrown Date: Fri, 11 Aug 2023 11:47:54 +1000 Subject: [PATCH] tile: silence use-before-set warning. "remain" is only used if "remaining" is not zero, so it will be set before used. But compiler cannot see that. Help it out. Signed-off-by: NeilBrown --- lib-tile.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib-tile.c b/lib-tile.c index d402350d..8367fe4a 100644 --- a/lib-tile.c +++ b/lib-tile.c @@ -269,7 +269,7 @@ static int tile_destroy(struct pane *p safe) { struct tileinfo *ti = p->data; struct pane *prev = NULL, *next = NULL; - struct pane *t, *remain; + struct pane *t, *remain = NULL; int pos, prevpos, nextpos; int remaining = 0; -- 2.39.5