diff src/undo.c @ 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 d45e42b45470
children 7ad3fc329e08
line wrap: on
line diff
--- 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;