diff options
author | Bram Moolenaar <Bram@vim.org> | 2019-04-07 11:56:49 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2019-04-07 11:56:49 +0200 |
commit | 08499f5a4d24cb7298b9730a22b2f84f2207c4d0 (patch) | |
tree | 726fceb4a91e8606fca8a92621176975d49111a4 /src/globals.h | |
parent | 616aeef21f2abd0bc51dd98e641ade9bbc29a078 (diff) |
patch 8.1.1133: compiler warning for uninitialized struct memberv8.1.1133
Problem: Compiler warning for uninitialized struct member. (Yegappan
Lakshmanan)
Solution: Add initializer field.
Diffstat (limited to 'src/globals.h')
-rw-r--r-- | src/globals.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/globals.h b/src/globals.h index adf98f229b..6f4144aefc 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); |