]> git.ipfire.org Git - thirdparty/vim.git/commitdiff
patch 9.1.0858: Coverity complains about dead code v9.1.0858
authorChristian Brabandt <cb@256bit.org>
Tue, 12 Nov 2024 19:10:58 +0000 (20:10 +0100)
committerChristian Brabandt <cb@256bit.org>
Tue, 12 Nov 2024 19:10:58 +0000 (20:10 +0100)
Problem:  Coverity complains about dead code
          (after v9.1.0852)
Solution: adjust #ifdef FEAT_CLIPBOARD

Signed-off-by: Christian Brabandt <cb@256bit.org>
src/register.c
src/version.c

index c9bc7522407d4597ce7fecdc0fb7a4e1a7b6a76c..3ca425b4502bfd9be2570fe1b22397bffb7da00c 100644 (file)
@@ -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;
 }
 
index 5c775b030415efeb05679aadc6f38c0e9991701a..bb0de39e13a0fbe737242e4eca09990952c43021 100644 (file)
@@ -704,6 +704,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    858,
 /**/
     857,
 /**/