diff src/eval.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 6ee80f3b5ea9
children 5b5c5daf57de
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;