summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2019-04-26 20:33:00 +0200
committerBram Moolenaar <Bram@vim.org>2019-04-26 20:33:00 +0200
commit1f3601e92e7fd2813b9541580d6d9649c802eb58 (patch)
tree05c9e99b68810e0a12ca7af59619431ec8ae8c1c
parentd1f90bbcab0ad934d3f48a717a916807b57269ab (diff)
downloadvim-git-8.1.1207.tar.gz
patch 8.1.1207: some compilers give warning messagesv8.1.1207
Problem: Some compilers give warning messages. Solution: Initialize variables, change printf() argument. (Christian Brabandt, closes #4305)
-rw-r--r--src/eval.c2
-rw-r--r--src/screen.c4
-rw-r--r--src/undo.c2
-rw-r--r--src/version.c2
-rw-r--r--src/window.c2
5 files changed, 7 insertions, 5 deletions
diff --git a/src/eval.c b/src/eval.c
index dd6628751..bf82d0263 100644
--- a/src/eval.c
+++ b/src/eval.c
@@ -4051,7 +4051,7 @@ eval6(
varnumber_T n1, n2;
#ifdef FEAT_FLOAT
int use_float = FALSE;
- float_T f1 = 0, f2;
+ float_T f1 = 0, f2 = 0;
#endif
int error = FALSE;
diff --git a/src/screen.c b/src/screen.c
index 67a0db943..862a63584 100644
--- a/src/screen.c
+++ b/src/screen.c
@@ -549,8 +549,8 @@ update_screen(int type_arg)
#endif
#ifdef FEAT_GUI
int did_undraw = FALSE;
- int gui_cursor_col;
- int gui_cursor_row;
+ int gui_cursor_col = 0;
+ int gui_cursor_row = 0;
#endif
int no_update = FALSE;
diff --git a/src/undo.c b/src/undo.c
index 978549aea..1d2614449 100644
--- a/src/undo.c
+++ b/src/undo.c
@@ -2271,7 +2271,7 @@ undo_time(
u_header_T *uhp = NULL;
u_header_T *last;
int mark;
- int nomark;
+ int nomark = 0; // shut up compiler
int round;
int dosec = sec;
int dofile = file;
diff --git a/src/version.c b/src/version.c
index 454ea5629..7cbd2b54a 100644
--- a/src/version.c
+++ b/src/version.c
@@ -772,6 +772,8 @@ static char *(features[]) =
static int included_patches[] =
{ /* Add new patch number below this line */
/**/
+ 1207,
+/**/
1206,
/**/
1205,
diff --git a/src/window.c b/src/window.c
index df82d203f..b132361a5 100644
--- a/src/window.c
+++ b/src/window.c
@@ -3981,7 +3981,7 @@ enter_tabpage(
void
goto_tabpage(int n)
{
- tabpage_T *tp;
+ tabpage_T *tp = NULL; // shut up compiler
tabpage_T *ttp;
int i;