]> granicus.if.org Git - vim/commitdiff
patch 8.1.2217: compiler warning for unused variable v8.1.2217
authorBram Moolenaar <Bram@vim.org>
Sat, 26 Oct 2019 10:23:04 +0000 (12:23 +0200)
committerBram Moolenaar <Bram@vim.org>
Sat, 26 Oct 2019 10:23:04 +0000 (12:23 +0200)
Problem:    Compiler warning for unused variable.
Solution:   Move variable inside #ifdef. (John Marriott)

src/ex_cmds.c
src/version.c

index 7153606282a2287dfb1ac208a44c47db5ae2e791..fc692e32359880c0330f1adfaaeb8b298e4d8b46 100644 (file)
@@ -3856,7 +3856,6 @@ do_sub(exarg_T *eap)
            colnr_T     matchcol;
            colnr_T     prev_matchcol = MAXCOL;
            char_u      *new_end, *new_start = NULL;
-           colnr_T     total_added =  0;
            unsigned    new_start_len = 0;
            char_u      *p1;
            int         did_sub = FALSE;
@@ -3868,6 +3867,7 @@ do_sub(exarg_T *eap)
            linenr_T    sub_firstlnum;  /* nr of first sub line */
 #ifdef FEAT_TEXT_PROP
            int         apc_flags = APC_SAVE_FOR_UNDO | APC_SUBSTITUTE;
+           colnr_T     total_added =  0;
 #endif
 
            /*
index c95f30583c4e4f22a1b1888b9660195d008efd68..71d8959741bd6bcb0304f0bbdfa5b1cba345d170 100644 (file)
@@ -741,6 +741,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    2217,
 /**/
     2216,
 /**/