comparison src/memline.c @ 17974:9fb236d0f386 v8.1.1983

patch 8.1.1983: compiler nags for uninitialized variable and unused function Commit: https://github.com/vim/vim/commit/ea781459b9617aa47335061fcc78403495260315 Author: Bram Moolenaar <Bram@vim.org> Date: Wed Sep 4 18:53:12 2019 +0200 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.
author Bram Moolenaar <Bram@vim.org>
date Wed, 04 Sep 2019 19:00:03 +0200
parents 5278e5a2a4e3
children 59bc3cd42cf5
comparison
equal deleted inserted replaced
17973:c76b0cb3fa3a 17974:9fb236d0f386
2714 int round; 2714 int round;
2715 int new_prop_count = 0; 2715 int new_prop_count = 0;
2716 int count; 2716 int count;
2717 int n; 2717 int n;
2718 char_u *props; 2718 char_u *props;
2719 int new_len; 2719 int new_len = 0; // init for gcc
2720 char_u *new_line; 2720 char_u *new_line;
2721 textprop_T prop; 2721 textprop_T prop;
2722 2722
2723 // Make two rounds: 2723 // Make two rounds:
2724 // 1. calculate the extra space needed 2724 // 1. calculate the extra space needed