patch 9.2.0142: Coverity: Dead code warning
Commit:
https://github.com/vim/vim/commit/401f9aeddf86a49846ad7049d0cba787fcf8e6d1
Author: Christian Brabandt <
c...@256bit.org>
Date: Wed Mar 11 22:02:38 2026 +0000
patch 9.2.0142: Coverity: Dead code warning
Problem: Coverity: Dead code warning for expressions in non-gui builds
(after v9.2.0139)
Solution: add ifdef FEAT_GUI
CID: 1685426
closes: #19654
Signed-off-by: Christian Brabandt <
c...@256bit.org>
diff --git a/src/term.c b/src/term.c
index 21c529db9..e00531d4a 100644
--- a/src/term.c
+++ b/src/term.c
@@ -7970,12 +7970,10 @@ term_set_win_resize(bool state)
{
# ifdef FEAT_GUI
bool in_gui = gui.in_use;
-# else
- bool in_gui = false;
-# endif
if (state && in_gui)
return;
+# endif
if (!state || win_resize_setting == 0 || win_resize_setting == 4)
{
diff --git a/src/version.c b/src/version.c
index a3ef8c1c9..8121a008d 100644
--- a/src/version.c
+++ b/src/version.c
@@ -734,6 +734,8 @@ static char *(features[]) =
static int included_patches[] =
{ /* Add new patch number below this line */
+/**/
+ 142,
/**/
141,
/**/