1
0
forked from aniani/vim

patch 8.1.1983: compiler nags for uninitialized variable and unused function

Problem:    Compiler nags for uninitialized variable and unused function.
Solution:   Add unnecessary initialization.  Move function inside #ifdef.
This commit is contained in:
Bram Moolenaar
2019-09-04 18:53:12 +02:00
parent 6a124e622c
commit ea781459b9
3 changed files with 36 additions and 40 deletions

View File

@@ -2716,7 +2716,7 @@ add_text_props_for_append(
int count;
int n;
char_u *props;
int new_len;
int new_len = 0; // init for gcc
char_u *new_line;
textprop_T prop;