0
0
mirror of https://github.com/vim/vim.git synced 2025-10-18 07:54:29 -04:00

updated for version 7.4a.031

Problem:    Compiler warnings. (Charles Campbell)
Solution:   Initialize variables even when not needed.
This commit is contained in:
Bram Moolenaar
2013-07-17 19:22:13 +02:00
parent 4a3aef7b28
commit de9149ef18
3 changed files with 13 additions and 3 deletions

View File

@@ -4060,9 +4060,13 @@ skip_add:
sub = &subs->norm;
}
/* avoid compiler warnings */
save_ptr = NULL;
save_lpos.lnum = 0;
save_lpos.col = 0;
/* Set the position (with "off" added) in the subexpression. Save
* and restore it when it was in use. Otherwise fill any gap. */
save_ptr = NULL;
if (REG_MULTI)
{
if (subidx < sub->in_use)
@@ -4192,11 +4196,16 @@ skip_add:
sub->list.multi[subidx].end.col =
(colnr_T)(reginput - regline + off);
}
/* avoid compiler warnings */
save_ptr = NULL;
}
else
{
save_ptr = sub->list.line[subidx].end;
sub->list.line[subidx].end = reginput + off;
/* avoid compiler warnings */
save_lpos.lnum = 0;
save_lpos.col = 0;
}
subs = addstate(l, state->out, subs, pim, off);