diff options
author | Bram Moolenaar <Bram@vim.org> | 2018-09-13 14:57:41 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2018-09-13 14:57:41 +0200 |
commit | c787539747f6bb2510a56aa14dbf6808aff5681a (patch) | |
tree | 9924629dd1a0115e06bf3f8abfa9900e337dfce2 | |
parent | 3b8defd0a52fc1276816608e7bb24b628ab14c2e (diff) | |
download | vim-git-c787539747f6bb2510a56aa14dbf6808aff5681a.tar.gz |
patch 8.1.0376: compiler warning for uninitialized variablev8.1.0376
Problem: Compiler warning for uninitialized variable. (Tony Mechelynck)
Solution: Initialize the variable.
-rw-r--r-- | src/screen.c | 4 | ||||
-rw-r--r-- | src/version.c | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/src/screen.c b/src/screen.c index 2586ad03c..51f53c311 100644 --- 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 diff --git a/src/version.c b/src/version.c index c10333912..89a134bf8 100644 --- a/src/version.c +++ b/src/version.c @@ -795,6 +795,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ /**/ + 376, +/**/ 375, /**/ 374, |