mirror of
https://github.com/vim/vim.git
synced 2025-09-29 04:34:16 -04:00
patch 8.1.0376: compiler warning for uninitialized variable
Problem: Compiler warning for uninitialized variable. (Tony Mechelynck) Solution: Initialize the variable.
This commit is contained in:
@@ -3147,7 +3147,7 @@ win_line(
|
|||||||
static linenr_T capcol_lnum = 0; /* line number where "cap_col" used */
|
static linenr_T capcol_lnum = 0; /* line number where "cap_col" used */
|
||||||
int cur_checked_col = 0; /* checked column for current line */
|
int cur_checked_col = 0; /* checked column for current line */
|
||||||
#endif
|
#endif
|
||||||
int extra_check; /* has syntax or linebreak */
|
int extra_check = 0; // has syntax or linebreak
|
||||||
#ifdef FEAT_MBYTE
|
#ifdef FEAT_MBYTE
|
||||||
int multi_attr = 0; /* attributes desired by multibyte */
|
int multi_attr = 0; /* attributes desired by multibyte */
|
||||||
int mb_l = 1; /* multi-byte byte length */
|
int mb_l = 1; /* multi-byte byte length */
|
||||||
@@ -3271,8 +3271,6 @@ win_line(
|
|||||||
*/
|
*/
|
||||||
#ifdef FEAT_LINEBREAK
|
#ifdef FEAT_LINEBREAK
|
||||||
extra_check = wp->w_p_lbr;
|
extra_check = wp->w_p_lbr;
|
||||||
#else
|
|
||||||
extra_check = 0;
|
|
||||||
#endif
|
#endif
|
||||||
#ifdef FEAT_SYN_HL
|
#ifdef FEAT_SYN_HL
|
||||||
if (syntax_present(wp) && !wp->w_s->b_syn_error
|
if (syntax_present(wp) && !wp->w_s->b_syn_error
|
||||||
|
@@ -794,6 +794,8 @@ static char *(features[]) =
|
|||||||
|
|
||||||
static int included_patches[] =
|
static int included_patches[] =
|
||||||
{ /* Add new patch number below this line */
|
{ /* Add new patch number below this line */
|
||||||
|
/**/
|
||||||
|
376,
|
||||||
/**/
|
/**/
|
||||||
375,
|
375,
|
||||||
/**/
|
/**/
|
||||||
|
Reference in New Issue
Block a user