]> git.ipfire.org Git - thirdparty/vim.git/commitdiff
patch 9.2.0142: Coverity: Dead code warning v9.2.0142
authorChristian Brabandt <cb@256bit.org>
Wed, 11 Mar 2026 22:02:38 +0000 (22:02 +0000)
committerChristian Brabandt <cb@256bit.org>
Thu, 12 Mar 2026 18:23:38 +0000 (18:23 +0000)
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 <cb@256bit.org>
src/term.c
src/version.c

index 21c529db97b266544f33ce4758f0d35790d6224b..e00531d4afb30768a06f9609531e8a92515f978a 100644 (file)
@@ -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)
     {
index a3ef8c1c92e52974532b4832be13c1f3c26899e0..8121a008de1b2eafbfbee4029d27430ea3beeda6 100644 (file)
@@ -734,6 +734,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    142,
 /**/
     141,
 /**/