Patch 8.1.2217

9 views
Skip to first unread message

Bram Moolenaar

unread,
Oct 26, 2019, 6:26:20 AM10/26/19
to vim...@googlegroups.com

Patch 8.1.2217
Problem: Compiler warning for unused variable.
Solution: Move variable inside #ifdef. (John Marriott)
Files: src/ex_cmds.c


*** ../vim-8.1.2216/src/ex_cmds.c 2019-10-25 22:13:26.273408806 +0200
--- src/ex_cmds.c 2019-10-26 12:21:12.689175538 +0200
***************
*** 3856,3862 ****
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;
--- 3856,3861 ----
***************
*** 3868,3873 ****
--- 3867,3873 ----
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

/*
*** ../vim-8.1.2216/src/version.c 2019-10-25 22:13:26.273408806 +0200
--- src/version.c 2019-10-26 12:22:45.432785838 +0200
***************
*** 743,744 ****
--- 743,746 ----
{ /* Add new patch number below this line */
+ /**/
+ 2217,
/**/

--
Sometimes you can protect millions of dollars in your budget simply by buying
a bag of cookies, dropping it on the budget anylyst's desk, and saying
something deeply personal such as "How was your weekend, big guy?"
(Scott Adams - The Dilbert principle)

/// Bram Moolenaar -- Br...@Moolenaar.net -- http://www.Moolenaar.net \\\
/// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\ an exciting new programming language -- http://www.Zimbu.org ///
\\\ help me help AIDS victims -- http://ICCF-Holland.org ///
Reply all
Reply to author
Forward
0 new messages