mirror of
https://github.com/neovim/neovim.git
synced 2025-09-13 14:58:18 +00:00
vim-patch:8.1.1207: some compilers give warning messages
Problem: Some compilers give warning messages.
Solution: Initialize variables, change printf() argument. (Christian
Brabandt, closes vim/vim#4305)
1f3601e92e
This commit is contained in:
@@ -3935,7 +3935,7 @@ static int eval6(char_u **arg, typval_T *rettv, int evaluate, int want_string)
|
|||||||
int op;
|
int op;
|
||||||
varnumber_T n1, n2;
|
varnumber_T n1, n2;
|
||||||
bool use_float = false;
|
bool use_float = false;
|
||||||
float_T f1 = 0, f2;
|
float_T f1 = 0, f2 = 0;
|
||||||
bool error = false;
|
bool error = false;
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
@@ -1818,7 +1818,7 @@ void undo_time(long step, bool sec, bool file, bool absolute)
|
|||||||
u_header_T *uhp = NULL;
|
u_header_T *uhp = NULL;
|
||||||
u_header_T *last;
|
u_header_T *last;
|
||||||
int mark;
|
int mark;
|
||||||
int nomark;
|
int nomark = 0; // shut up compiler
|
||||||
int round;
|
int round;
|
||||||
bool dosec = sec;
|
bool dosec = sec;
|
||||||
bool dofile = file;
|
bool dofile = file;
|
||||||
|
@@ -3847,7 +3847,7 @@ static void tabpage_check_windows(tabpage_T *old_curtab)
|
|||||||
*/
|
*/
|
||||||
void goto_tabpage(int n)
|
void goto_tabpage(int n)
|
||||||
{
|
{
|
||||||
tabpage_T *tp;
|
tabpage_T *tp = NULL; // shut up compiler
|
||||||
tabpage_T *ttp;
|
tabpage_T *ttp;
|
||||||
int i;
|
int i;
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user