Patch 8.2.1670
Problem:    A couple of gcc compiler warnings.
Solution:   Initialize local variables. (Dominique Pellé, closes #6944)
Files:      src/memline.c, src/option.c


*** ../vim-8.2.1669/src/memline.c       2020-08-22 15:19:13.932593710 +0200
--- src/memline.c       2020-09-12 21:03:44.342336673 +0200
***************
*** 2634,2640 ****
      int               n;
      char_u    *props;
      int               new_len = 0;  // init for gcc
!     char_u    *new_line;
      textprop_T        prop;
  
      // Make two rounds:
--- 2634,2640 ----
      int               n;
      char_u    *props;
      int               new_len = 0;  // init for gcc
!     char_u    *new_line = NULL;
      textprop_T        prop;
  
      // Make two rounds:
*** ../vim-8.2.1669/src/option.c        2020-09-12 14:53:45.802973526 +0200
--- src/option.c        2020-09-12 21:03:44.342336673 +0200
***************
*** 683,689 ****
      static char_u *
  find_dup_item(char_u *origval, char_u *newval, long_u flags)
  {
!     int           bs;
      size_t  newlen;
      char_u  *s;
  
--- 683,689 ----
      static char_u *
  find_dup_item(char_u *origval, char_u *newval, long_u flags)
  {
!     int           bs = 0;
      size_t  newlen;
      char_u  *s;
  
*** ../vim-8.2.1669/src/version.c       2020-09-12 19:51:39.096297159 +0200
--- src/version.c       2020-09-12 21:04:00.986285431 +0200
***************
*** 752,753 ****
--- 752,755 ----
  {   /* Add new patch number below this line */
+ /**/
+     1670,
  /**/

-- 
A special law prohibits unmarried women from parachuting on Sunday or she
shall risk arrest, fine, and/or jailing.
                [real standing law in Florida, United States of America]

 /// 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/202009121904.08CJ4uri1201143%40masaka.moolenaar.net.

Raspunde prin e-mail lui