From b20b8f9f0450e0a3188f2f1c89d575399e0ab9a6 Mon Sep 17 00:00:00 2001 From: watiko Date: Fri, 15 Jan 2016 17:06:38 +0900 Subject: vim-patch:7.4.780 Problem: Compiler complains about uninitialized variable and clobbered variables. Solution: Add Initialization. Make variables static. https://github.com/vim/vim/commit/1db43b1145fe466b5d41af6744a08083983de3a9 --- src/nvim/ops.c | 2 +- src/nvim/version.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/nvim/ops.c b/src/nvim/ops.c index f85246344c..a7c2f2ae72 100644 --- a/src/nvim/ops.c +++ b/src/nvim/ops.c @@ -4230,7 +4230,7 @@ int do_addsub(int command, linenr_T Prenum1, bool g_cmd) bool visual = VIsual_active; int lnum = curwin->w_cursor.lnum; int lnume = curwin->w_cursor.lnum; - int startcol; + int startcol = 0; bool did_change = false; dohex = (vim_strchr(curbuf->b_p_nf, 'x') != NULL); // "heX" diff --git a/src/nvim/version.c b/src/nvim/version.c index 3c15869ea0..955a042fcc 100644 --- a/src/nvim/version.c +++ b/src/nvim/version.c @@ -354,7 +354,7 @@ static int included_patches[] = { // 783 NA // 782, 781, - // 780 NA + 780, 779, 778, // 777 NA -- cgit