1
0
forked from aniani/vim

patch 8.1.0364: compiler warning in xdiff code

Problem:    Compiler warning in xdiff code. (Yegappan Lakshmanan)
Solution:   Initialize directly.
This commit is contained in:
Bram Moolenaar
2018-09-10 21:22:15 +02:00
parent c93262b2e3
commit e797abf3c7
3 changed files with 7 additions and 1 deletions

View File

@@ -794,6 +794,8 @@ static char *(features[]) =
static int included_patches[] =
{ /* Add new patch number below this line */
/**/
364,
/**/
363,
/**/

View File

@@ -11,4 +11,6 @@ And since it's part of git it is expected to be reliable.
The code is distributed under the GNU LGPL license. It is included in the
COPYING file.
Changes in these files were made to avoid compiler warnings.
The first work for including xdiff in Vim was done by Christian Brabandt.

View File

@@ -169,7 +169,9 @@ int xdl_emit_diff(xdfenv_t *xe, xdchange_t *xscr, xdemitcb_t *ecb,
long s1, s2, e1, e2, lctx;
xdchange_t *xch, *xche;
long funclineprev = -1;
struct func_line func_line = { 0 };
struct func_line func_line;
func_line.len = 0;
for (xch = xscr; xch; xch = xche->next) {
xche = xdl_get_hunk(&xch, xecfg);