patch 9.1.0858: Coverity complains about dead code
Commit:
https://github.com/vim/vim/commit/002ccbfac4ab0b052f4d547ea4c4ffbf212e4592
Author: Christian Brabandt <[email protected]>
Date: Tue Nov 12 20:10:58 2024 +0100
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 <[email protected]>
diff --git a/src/register.c b/src/register.c
index c9bc75224..3ca425b45 100644
--- a/src/register.c
+++ b/src/register.c
@@ -198,6 +198,7 @@ valid_yank_reg(
#endif
)
return TRUE;
+#ifndef FEAT_CLIPBOARD
// clipboard support not enabled in this build
else if (regname == '*' || regname == '+')
{
@@ -205,6 +206,7 @@ valid_yank_reg(
msg_warn_missing_clipboard();
return FALSE;
}
+#endif
return FALSE;
}
diff --git a/src/version.c b/src/version.c
index 5c775b030..bb0de39e1 100644
--- a/src/version.c
+++ b/src/version.c
@@ -704,6 +704,8 @@ static char *(features[]) =
static int included_patches[] =
{ /* Add new patch number below this line */
+/**/
+ 858,
/**/
857,
/**/
--
--
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/E1tAwM1-0003aG-Ui%40256bit.org.