changeset 16257:7ae072701f6a v8.1.1133

patch 8.1.1133: compiler warning for uninitialized struct member commit https://github.com/vim/vim/commit/08499f5a4d24cb7298b9730a22b2f84f2207c4d0 Author: Bram Moolenaar <Bram@vim.org> Date: Sun Apr 7 11:56:49 2019 +0200 patch 8.1.1133: compiler warning for uninitialized struct member Problem: Compiler warning for uninitialized struct member. (Yegappan Lakshmanan) Solution: Add initializer field.
author Bram Moolenaar <Bram@vim.org>
date Sun, 07 Apr 2019 12:00:05 +0200
parents 28e74d9092c0
children 6fffe95a5667
files src/globals.h src/version.c
diffstat 2 files changed, 3 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/globals.h
+++ b/src/globals.h
@@ -320,7 +320,7 @@ EXTERN int	want_garbage_collect INIT(= F
 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);
--- a/src/version.c
+++ b/src/version.c
@@ -772,6 +772,8 @@ static char *(features[]) =
 static int included_patches[] =
 {   /* Add new patch number below this line */
 /**/
+    1133,
+/**/
     1132,
 /**/
     1131,