mirror of
https://github.com/vim/vim.git
synced 2025-09-25 03:54:15 -04:00
patch 7.4.780
Problem: Compiler complains about uninitialized variable and clobbered variables. Solution: Add Initialization. Make variables static.
This commit is contained in:
@@ -1069,9 +1069,10 @@ main_loop(cmdwin, noexmode)
|
|||||||
oparg_T oa; /* operator arguments */
|
oparg_T oa; /* operator arguments */
|
||||||
volatile int previous_got_int = FALSE; /* "got_int" was TRUE */
|
volatile int previous_got_int = FALSE; /* "got_int" was TRUE */
|
||||||
#ifdef FEAT_CONCEAL
|
#ifdef FEAT_CONCEAL
|
||||||
linenr_T conceal_old_cursor_line = 0;
|
/* these are static to avoid a compiler warning */
|
||||||
linenr_T conceal_new_cursor_line = 0;
|
static linenr_T conceal_old_cursor_line = 0;
|
||||||
int conceal_update_lines = FALSE;
|
static linenr_T conceal_new_cursor_line = 0;
|
||||||
|
static int conceal_update_lines = FALSE;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if defined(FEAT_X11) && defined(FEAT_XCLIPBOARD)
|
#if defined(FEAT_X11) && defined(FEAT_XCLIPBOARD)
|
||||||
|
@@ -5403,7 +5403,7 @@ do_addsub(command, Prenum1, g_cmd)
|
|||||||
int i;
|
int i;
|
||||||
int lnum = curwin->w_cursor.lnum;
|
int lnum = curwin->w_cursor.lnum;
|
||||||
int lnume = curwin->w_cursor.lnum;
|
int lnume = curwin->w_cursor.lnum;
|
||||||
int startcol;
|
int startcol = 0;
|
||||||
int did_change = FALSE;
|
int did_change = FALSE;
|
||||||
|
|
||||||
dohex = (vim_strchr(curbuf->b_p_nf, 'x') != NULL); /* "heX" */
|
dohex = (vim_strchr(curbuf->b_p_nf, 'x') != NULL); /* "heX" */
|
||||||
|
@@ -741,6 +741,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 */
|
||||||
|
/**/
|
||||||
|
780,
|
||||||
/**/
|
/**/
|
||||||
779,
|
779,
|
||||||
/**/
|
/**/
|
||||||
|
Reference in New Issue
Block a user