Skip to content

Commit 002ccbf

Browse files
committed
patch 9.1.0858: Coverity complains about dead code
Problem: Coverity complains about dead code (after v9.1.0852) Solution: adjust #ifdef FEAT_CLIPBOARD Signed-off-by: Christian Brabandt <cb@256bit.org>
1 parent 129a844 commit 002ccbf

2 files changed

Lines changed: 4 additions & 0 deletions

File tree

src/register.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -198,13 +198,15 @@ valid_yank_reg(
198198
#endif
199199
)
200200
return TRUE;
201+
#ifndef FEAT_CLIPBOARD
201202
// clipboard support not enabled in this build
202203
else if (regname == '*' || regname == '+')
203204
{
204205
// Warn about missing clipboard support once
205206
msg_warn_missing_clipboard();
206207
return FALSE;
207208
}
209+
#endif
208210
return FALSE;
209211
}
210212

src/version.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -704,6 +704,8 @@ static char *(features[]) =
704704

705705
static int included_patches[] =
706706
{ /* Add new patch number below this line */
707+
/**/
708+
858,
707709
/**/
708710
857,
709711
/**/

0 commit comments

Comments
 (0)