Compare commits

...

1 Commits

Author SHA1 Message Date
Christian Brabandt
401f9aeddf 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 <cb@256bit.org>
2026-03-12 18:23:38 +00:00
2 changed files with 3 additions and 3 deletions

View 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)
{

View File

@@ -734,6 +734,8 @@ static char *(features[]) =
static int included_patches[] =
{ /* Add new patch number below this line */
/**/
142,
/**/
141,
/**/