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 -- [email protected] -- 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    ///

-- 
-- 
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

--- 
You received this message because you are subscribed to the Google Groups 
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/vim_dev/201910261026.x9QAQ70o001446%40masaka.moolenaar.net.

Raspunde prin e-mail lui