Mercurial > vim
changeset 16405:840fa633ad64 v8.1.1207
patch 8.1.1207: some compilers give warning messages
commit https://github.com/vim/vim/commit/1f3601e92e7fd2813b9541580d6d9649c802eb58
Author: Bram Moolenaar <Bram@vim.org>
Date: Fri Apr 26 20:33:00 2019 +0200
patch 8.1.1207: some compilers give warning messages
Problem: Some compilers give warning messages.
Solution: Initialize variables, change printf() argument. (Christian
Brabandt, closes #4305)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Fri, 26 Apr 2019 20:45:06 +0200 |
parents | 5bbb39c9706a |
children | 78f68847e3a9 |
files | src/eval.c src/screen.c src/undo.c src/version.c src/window.c |
diffstat | 5 files changed, 7 insertions(+), 5 deletions(-) [+] |
line wrap: on
line diff
--- 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;
--- 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;
--- 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;