Skip to content

Commit c7488a7

Browse files
committed
patch 8.1.2217: compiler warning for unused variable
Problem: Compiler warning for unused variable. Solution: Move variable inside #ifdef. (John Marriott)
1 parent 1fd30d7 commit c7488a7

2 files changed

Lines changed: 3 additions & 1 deletion

File tree

src/ex_cmds.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3856,7 +3856,6 @@ do_sub(exarg_T *eap)
38563856
colnr_T matchcol;
38573857
colnr_T prev_matchcol = MAXCOL;
38583858
char_u *new_end, *new_start = NULL;
3859-
colnr_T total_added = 0;
38603859
unsigned new_start_len = 0;
38613860
char_u *p1;
38623861
int did_sub = FALSE;
@@ -3868,6 +3867,7 @@ do_sub(exarg_T *eap)
38683867
linenr_T sub_firstlnum; /* nr of first sub line */
38693868
#ifdef FEAT_TEXT_PROP
38703869
int apc_flags = APC_SAVE_FOR_UNDO | APC_SUBSTITUTE;
3870+
colnr_T total_added = 0;
38713871
#endif
38723872

38733873
/*

src/version.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -741,6 +741,8 @@ static char *(features[]) =
741741

742742
static int included_patches[] =
743743
{ /* Add new patch number below this line */
744+
/**/
745+
2217,
744746
/**/
745747
2216,
746748
/**/

0 commit comments

Comments
 (0)