diff options
author | Bram Moolenaar <Bram@vim.org> | 2022-04-20 10:22:54 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2022-04-20 10:22:54 +0100 |
commit | 4c84dd33ad739237bb38bb4e51702af972b5e507 (patch) | |
tree | aaf77983d71fd0c39b53314e73f2f9dfe1e12317 | |
parent | 928a13135629fa8e73796760077b1b877918a080 (diff) | |
download | vim-git-4c84dd33ad739237bb38bb4e51702af972b5e507.tar.gz |
patch 8.2.4794: compiler warning for not initialized variablev8.2.4794
Problem: Compiler warning for not initialized variable.
Solution: Initialize the variable. (John Marriott)
-rw-r--r-- | src/indent.c | 2 | ||||
-rw-r--r-- | src/version.c | 2 |
2 files changed, 3 insertions, 1 deletions
diff --git a/src/indent.c b/src/indent.c index be9dd4b5b..9efa52753 100644 --- a/src/indent.c +++ b/src/indent.c @@ -1046,7 +1046,7 @@ inindent(int extra) void op_reindent(oparg_T *oap, int (*how)(void)) { - long i; + long i = 0; char_u *l; int amount; linenr_T first_changed = 0; diff --git a/src/version.c b/src/version.c index 901df55c7..728f8bb81 100644 --- a/src/version.c +++ b/src/version.c @@ -747,6 +747,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ /**/ + 4794, +/**/ 4793, /**/ 4792, |