]> granicus.if.org Git - vim/commitdiff
patch 8.0.1569: warning for uninitialized variable from gcc v8.0.1569
authorBram Moolenaar <Bram@vim.org>
Mon, 5 Mar 2018 11:42:42 +0000 (12:42 +0100)
committerBram Moolenaar <Bram@vim.org>
Mon, 5 Mar 2018 11:42:42 +0000 (12:42 +0100)
Problem:    Warning for uninitialized variable from gcc.
Solution:   Initialize the variable.

src/quickfix.c
src/version.c

index 23cb92696ee8c54b33d861b76397ae3e0e97bdd0..7ee386dbbc7e269ccad8421255710eabfc9bf0d6 100644 (file)
@@ -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)
index 96ac824ee4da85a4ac5c55b68f58eb2b2888d374..2b64f3692469937363c0ab0eddc74ce7f11a02ad 100644 (file)
@@ -766,6 +766,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    1569,
 /**/
     1568,
 /**/