Mercurial > vim
changeset 14728:21626570ea46 v8.1.0376
patch 8.1.0376: compiler warning for uninitialized variable
commit https://github.com/vim/vim/commit/c787539747f6bb2510a56aa14dbf6808aff5681a
Author: Bram Moolenaar <Bram@vim.org>
Date: Thu Sep 13 14:57:41 2018 +0200
patch 8.1.0376: compiler warning for uninitialized variable
Problem: Compiler warning for uninitialized variable. (Tony Mechelynck)
Solution: Initialize the variable.
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Thu, 13 Sep 2018 15:00:06 +0200 |
parents | de529ea620e7 |
children | 7cb784c3b08f |
files | src/screen.c src/version.c |
diffstat | 2 files changed, 3 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/src/screen.c +++ b/src/screen.c @@ -3147,7 +3147,7 @@ win_line( static linenr_T capcol_lnum = 0; /* line number where "cap_col" used */ int cur_checked_col = 0; /* checked column for current line */ #endif - int extra_check; /* has syntax or linebreak */ + int extra_check = 0; // has syntax or linebreak #ifdef FEAT_MBYTE int multi_attr = 0; /* attributes desired by multibyte */ int mb_l = 1; /* multi-byte byte length */ @@ -3271,8 +3271,6 @@ win_line( */ #ifdef FEAT_LINEBREAK extra_check = wp->w_p_lbr; -#else - extra_check = 0; #endif #ifdef FEAT_SYN_HL if (syntax_present(wp) && !wp->w_s->b_syn_error