forked from aniani/vim
patch 8.2.1670: a couple of gcc compiler warnings
Problem: A couple of gcc compiler warnings. Solution: Initialize local variables. (Dominique Pellé, closes #6944)
This commit is contained in:
parent
b0fa5e17c5
commit
8f13d82fa6
@ -2634,7 +2634,7 @@ add_text_props_for_append(
|
||||
int n;
|
||||
char_u *props;
|
||||
int new_len = 0; // init for gcc
|
||||
char_u *new_line;
|
||||
char_u *new_line = NULL;
|
||||
textprop_T prop;
|
||||
|
||||
// Make two rounds:
|
||||
|
@ -683,7 +683,7 @@ set_string_default(char *name, char_u *val)
|
||||
static char_u *
|
||||
find_dup_item(char_u *origval, char_u *newval, long_u flags)
|
||||
{
|
||||
int bs;
|
||||
int bs = 0;
|
||||
size_t newlen;
|
||||
char_u *s;
|
||||
|
||||
|
@ -750,6 +750,8 @@ static char *(features[]) =
|
||||
|
||||
static int included_patches[] =
|
||||
{ /* Add new patch number below this line */
|
||||
/**/
|
||||
1670,
|
||||
/**/
|
||||
1669,
|
||||
/**/
|
||||
|
Loading…
x
Reference in New Issue
Block a user