# HG changeset patch # User Bram Moolenaar # Date 1599938103 -7200 # Node ID f7871f02ddcd10d2ce2949f47a6a605c04586b40 # Parent d99599baeaf8ddbd19f001a403b42885f17427f1 patch 8.2.1670: a couple of gcc compiler warnings Commit: https://github.com/vim/vim/commit/8f13d82fa6ac6faa1a91076e99000a8f02180e8e Author: Bram Moolenaar Date: Sat Sep 12 21:04:23 2020 +0200 patch 8.2.1670: a couple of gcc compiler warnings Problem: A couple of gcc compiler warnings. Solution: Initialize local variables. (Dominique Pell?, closes https://github.com/vim/vim/issues/6944) diff --git a/src/memline.c b/src/memline.c --- a/src/memline.c +++ b/src/memline.c @@ -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: diff --git a/src/option.c b/src/option.c --- a/src/option.c +++ b/src/option.c @@ -683,7 +683,7 @@ set_string_default(char *name, char_u *v 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; diff --git a/src/version.c b/src/version.c --- a/src/version.c +++ b/src/version.c @@ -751,6 +751,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ /**/ + 1670, +/**/ 1669, /**/ 1668,