]> granicus.if.org Git - vim/commitdiff
patch 9.0.0859: compiler warning for unused variable v9.0.0859
authorBram Moolenaar <Bram@vim.org>
Fri, 11 Nov 2022 01:40:48 +0000 (01:40 +0000)
committerBram Moolenaar <Bram@vim.org>
Fri, 11 Nov 2022 01:40:48 +0000 (01:40 +0000)
Problem:    Compiler warning for unused variable.
Solution:   Add #ifdef.

src/ex_docmd.c
src/version.c

index a445c3135cb9f647c71090baf079a4ebcc1ac65e..02bca38e04825708e9aaf4c5ab9720a1ad31de1e 100644 (file)
@@ -4308,8 +4308,9 @@ get_address(
     lnum = MAXLNUM;
     do
     {
+#ifdef FEAT_FOLDING
        int base_char = *cmd;
-
+#endif
        switch (*cmd)
        {
            case '.':                       // '.' - Cursor position
index 981bd548a88b0dc74dec89e48e1544c70fd83605..fe55c0a1abd19b1f4dacac2eb0b804282e2bf5d3 100644 (file)
@@ -695,6 +695,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    859,
 /**/
     858,
 /**/