patch 9.2.0142: Coverity: Dead code warning
Commit:
https://github.com/vim/vim/commit/401f9aeddf86a49846ad7049d0cba787fcf8e6d1
Author: Christian Brabandt <[email protected]>
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 <[email protected]>
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,
/**/
--
--
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
---
You received this message because you are subscribed to the Google Groups
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion visit
https://groups.google.com/d/msgid/vim_dev/E1w0knL-0027gL-HY%40256bit.org.