changeset 18446:b026f4524f25 v8.1.2217

patch 8.1.2217: compiler warning for unused variable Commit: https://github.com/vim/vim/commit/c7488a7fc8ed0d4fd9cc440117ff848170321517 Author: Bram Moolenaar <Bram@vim.org> Date: Sat Oct 26 12:23:04 2019 +0200 patch 8.1.2217: compiler warning for unused variable Problem: Compiler warning for unused variable. Solution: Move variable inside #ifdef. (John Marriott)
author Bram Moolenaar <Bram@vim.org>
date Sat, 26 Oct 2019 12:30:06 +0200
parents 348619b23b4e
children d978101d8bfd
files src/ex_cmds.c src/version.c
diffstat 2 files changed, 3 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/ex_cmds.c
+++ b/src/ex_cmds.c
@@ -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
 
 	    /*
--- a/src/version.c
+++ b/src/version.c
@@ -742,6 +742,8 @@ static char *(features[]) =
 static int included_patches[] =
 {   /* Add new patch number below this line */
 /**/
+    2217,
+/**/
     2216,
 /**/
     2215,