From: Paul Eggert Date: Mon, 15 May 2023 01:51:22 +0000 (-0700) Subject: Pacify GCC 13 -fanalyzer in tty_menu_activate X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=67ee74f8e55476a45db750f1e22903b218b04ab9;p=emacs.git Pacify GCC 13 -fanalyzer in tty_menu_activate * src/term.c (tty_menu_activate): Trivially reword comparison to pacify gcc -fanalyzer with GCC 13. --- 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);