diff options
author | Jan Edmund Lazo <jan.lazo@mail.utoronto.ca> | 2019-04-26 23:58:09 -0400 |
---|---|---|
committer | Jan Edmund Lazo <jan.lazo@mail.utoronto.ca> | 2019-04-27 00:00:51 -0400 |
commit | 66d86d8bdbe96fe7d8e7390d7348fa458a0421fa (patch) | |
tree | f5e6a78cf46c71279a0739e1bc87d26c8c606713 /src/nvim/undo.c | |
parent | 2e339807ac4f936876195f350c8e5055e55fa94e (diff) | |
download | rneovim-66d86d8bdbe96fe7d8e7390d7348fa458a0421fa.tar.gz rneovim-66d86d8bdbe96fe7d8e7390d7348fa458a0421fa.tar.bz2 rneovim-66d86d8bdbe96fe7d8e7390d7348fa458a0421fa.zip |
vim-patch:8.1.1207: some compilers give warning messages
Problem: Some compilers give warning messages.
Solution: Initialize variables, change printf() argument. (Christian
Brabandt, closes vim/vim#4305)
https://github.com/vim/vim/commit/1f3601e92e7fd2813b9541580d6d9649c802eb58
Diffstat (limited to 'src/nvim/undo.c')
-rw-r--r-- | src/nvim/undo.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nvim/undo.c b/src/nvim/undo.c index 8bb1b9e745..0a32d9b872 100644 --- a/src/nvim/undo.c +++ b/src/nvim/undo.c @@ -1818,7 +1818,7 @@ void undo_time(long step, bool sec, bool file, bool absolute) u_header_T *uhp = NULL; u_header_T *last; int mark; - int nomark; + int nomark = 0; // shut up compiler int round; bool dosec = sec; bool dofile = file; |