# HG changeset patch # User Bram Moolenaar # Date 1436710883 -7200 # Node ID 9a13e3910e3d45c768a1e3d87a15a62b4cee439c # Parent 681921dee50d311cb06e827394f344e2f634f045 patch 7.4.780 Problem: Compiler complains about uninitialized variable and clobbered variables. Solution: Add Initialization. Make variables static. diff --git a/src/main.c b/src/main.c --- a/src/main.c +++ b/src/main.c @@ -1069,9 +1069,10 @@ main_loop(cmdwin, noexmode) oparg_T oa; /* operator arguments */ volatile int previous_got_int = FALSE; /* "got_int" was TRUE */ #ifdef FEAT_CONCEAL - linenr_T conceal_old_cursor_line = 0; - linenr_T conceal_new_cursor_line = 0; - int conceal_update_lines = FALSE; + /* these are static to avoid a compiler warning */ + static linenr_T conceal_old_cursor_line = 0; + static linenr_T conceal_new_cursor_line = 0; + static int conceal_update_lines = FALSE; #endif #if defined(FEAT_X11) && defined(FEAT_XCLIPBOARD) diff --git a/src/ops.c b/src/ops.c --- a/src/ops.c +++ b/src/ops.c @@ -5403,7 +5403,7 @@ do_addsub(command, Prenum1, g_cmd) int i; int lnum = curwin->w_cursor.lnum; int lnume = curwin->w_cursor.lnum; - int startcol; + int startcol = 0; int did_change = FALSE; dohex = (vim_strchr(curbuf->b_p_nf, 'x') != NULL); /* "heX" */ diff --git a/src/version.c b/src/version.c --- a/src/version.c +++ b/src/version.c @@ -742,6 +742,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ /**/ + 780, +/**/ 779, /**/ 778,