Mercurial > vim
changeset 13138:0f906f414c69 v8.0.1443
patch 8.0.1443: compiler complains about uninitialized variable
commit https://github.com/vim/vim/commit/059fd01021779ee369c1e55557275f6c349fda9e
Author: Bram Moolenaar <Bram@vim.org>
Date: Wed Jan 31 14:25:53 2018 +0100
patch 8.0.1443: compiler complains about uninitialized variable
Problem: Compiler complains about uninitialized variable. (Tony Mechelynck)
Solution: Assign a value to the variable.
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Wed, 31 Jan 2018 14:30:05 +0100 |
parents | c30e4ae94349 |
children | ff0adb5f16d0 |
files | src/undo.c src/version.c |
diffstat | 2 files changed, 7 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/src/undo.c +++ b/src/undo.c @@ -2364,7 +2364,10 @@ undo_time( /* When "target" is 0; Back to origin. */ if (target == 0) - goto found; + { + mark = lastmark; /* avoid that GCC complains */ + goto target_zero; + } /* * May do this twice: @@ -2491,7 +2494,7 @@ undo_time( above = TRUE; /* stop above the header */ } -found: +target_zero: /* If we found it: Follow the path to go to where we want to be. */ if (uhp != NULL || target == 0) {