From 08499f5a4d24cb7298b9730a22b2f84f2207c4d0 Mon Sep 17 00:00:00 2001 From: Bram Moolenaar Date: Sun, 7 Apr 2019 11:56:49 +0200 Subject: [PATCH] patch 8.1.1133: compiler warning for uninitialized struct member Problem: Compiler warning for uninitialized struct member. (Yegappan Lakshmanan) Solution: Add initializer field. --- src/globals.h | 2 +- src/version.c | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/src/globals.h b/src/globals.h index adf98f229..6f4144aef 100644 --- a/src/globals.h +++ b/src/globals.h @@ -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); diff --git a/src/version.c b/src/version.c index 47c9e3369..9f6223217 100644 --- a/src/version.c +++ b/src/version.c @@ -771,6 +771,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ +/**/ + 1133, /**/ 1132, /**/ -- 2.50.1