]> granicus.if.org Git - vim/commitdiff
patch 8.1.1133: compiler warning for uninitialized struct member v8.1.1133
authorBram Moolenaar <Bram@vim.org>
Sun, 7 Apr 2019 09:56:49 +0000 (11:56 +0200)
committerBram Moolenaar <Bram@vim.org>
Sun, 7 Apr 2019 09:56:49 +0000 (11:56 +0200)
Problem:    Compiler warning for uninitialized struct member. (Yegappan
            Lakshmanan)
Solution:   Add initializer field.

src/globals.h
src/version.c

index adf98f229bec9d6d269aceeaa629d0cb981a6815..6f4144aefc6029dea9a2f924ef7779165a5e4172 100644 (file)
@@ -320,7 +320,7 @@ EXTERN int  want_garbage_collect INIT(= FALSE);
 EXTERN int     garbage_collect_at_exit INIT(= FALSE);
 
 // Script CTX being sourced or was sourced to define the current function.
-EXTERN sctx_T  current_sctx INIT(= {0 COMMA 0 COMMA 0});
+EXTERN sctx_T  current_sctx INIT(= {0 COMMA 0 COMMA 0 COMMA 0});
 #endif
 
 EXTERN int     did_source_packages INIT(= FALSE);
index 47c9e33698b23ac1980ae37c6974a3d506f74868..9f62232178ac49eef0d94824fae622ba2ecb37b7 100644 (file)
@@ -771,6 +771,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    1133,
 /**/
     1132,
 /**/