changeset 13390:d0afc9aa7a43 v8.0.1569

patch 8.0.1569: warning for uninitialized variable from gcc commit https://github.com/vim/vim/commit/28ada699c13833219acaeb7e768acc2acae50e02 Author: Bram Moolenaar <Bram@vim.org> Date: Mon Mar 5 12:42:42 2018 +0100 patch 8.0.1569: warning for uninitialized variable from gcc Problem: Warning for uninitialized variable from gcc. Solution: Initialize the variable.
author Christian Brabandt <cb@256bit.org>
date Mon, 05 Mar 2018 12:45:06 +0100
parents f93b51140d8f
children 6ef2dba73dab
files src/quickfix.c src/version.c
diffstat 2 files changed, 3 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/quickfix.c
+++ b/src/quickfix.c
@@ -4099,7 +4099,7 @@ ex_cfile(exarg_T *eap)
     win_T	*wp = NULL;
     qf_info_T	*qi = &ql_info;
     char_u	*au_name = NULL;
-    int		save_qfid;
+    int		save_qfid = 0;  // init for gcc
     int		res;
 
     switch (eap->cmdidx)
--- a/src/version.c
+++ b/src/version.c
@@ -767,6 +767,8 @@ static char *(features[]) =
 static int included_patches[] =
 {   /* Add new patch number below this line */
 /**/
+    1569,
+/**/
     1568,
 /**/
     1567,