From 67ee74f8e55476a45db750f1e22903b218b04ab9 Mon Sep 17 00:00:00 2001 From: Paul Eggert Date: Sun, 14 May 2023 18:51:22 -0700 Subject: [PATCH] Pacify GCC 13 -fanalyzer in tty_menu_activate * src/term.c (tty_menu_activate): Trivially reword comparison to pacify gcc -fanalyzer with GCC 13. --- src/term.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/term.c b/src/term.c index 53ba2a231e4..2b28d3303e8 100644 --- a/src/term.c +++ b/src/term.c @@ -3319,7 +3319,7 @@ tty_menu_activate (tty_menu *menu, int *pane, int *selidx, active submenu. */ if (i != statecount - 2 || state[i].menu->submenu[dy] != state[i + 1].menu) - while (i != statecount - 1) + while (i < statecount - 1) { statecount--; screen_update (sf, state[statecount].screen_behind); -- 2.39.5