From a00247e147dc60d00cda4f8aa5380bb70fe0e272 Mon Sep 17 00:00:00 2001 From: Jan Edmund Lazo Date: Mon, 17 Sep 2018 22:36:30 -0400 Subject: vim-patch:8.0.1428: compiler warning on 64 bit MS-Windows system Problem: Compiler warning on 64 bit MS-Windows system. Solution: Change type from "int" to "size_t". (Mike Williams) https://github.com/vim/vim/commit/200ea8ffaa90e1ccc156b24ee097be87acdd5214 --- src/nvim/ex_getln.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/nvim/ex_getln.c b/src/nvim/ex_getln.c index 0bb704489b..92c35ad3a0 100644 --- a/src/nvim/ex_getln.c +++ b/src/nvim/ex_getln.c @@ -1787,7 +1787,7 @@ static int command_line_not_changed(CommandLineState *s) /// as a trailing \|, which can happen while typing a pattern. static int empty_pattern(char_u *p) { - int n = STRLEN(p); + size_t n = STRLEN(p); // remove trailing \v and the like while (n >= 2 && p[n - 2] == '\\' -- cgit From 58559a22498bed8a53d2f85f8ae4e1add7bb9e5d Mon Sep 17 00:00:00 2001 From: Jan Edmund Lazo Date: Mon, 17 Sep 2018 22:39:00 -0400 Subject: vim-patch:8.0.1443: compiler complains about uninitialized variable Problem: Compiler complains about uninitialized variable. (Tony Mechelynck) Solution: Assign a value to the variable. https://github.com/vim/vim/commit/059fd01021779ee369c1e55557275f6c349fda9e --- src/nvim/undo.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/nvim/undo.c b/src/nvim/undo.c index e15b9ec796..2a86cc1fea 100644 --- a/src/nvim/undo.c +++ b/src/nvim/undo.c @@ -1901,7 +1901,8 @@ void undo_time(long step, bool sec, bool file, bool absolute) // When "target" is 0; Back to origin. if (target == 0) { - goto found; + mark = lastmark; // avoid that GCC complains + goto target_zero; } /* @@ -2020,7 +2021,7 @@ void undo_time(long step, bool sec, bool file, bool absolute) } } -found: +target_zero: // If we found it: Follow the path to go to where we want to be. if (uhp != NULL || target == 0) { // First go up the tree as much as needed. -- cgit