Mercurial > vim
changeset 6604:6eecaf5a18ca v7.4.628
updated for version 7.4.628
Problem: Compiler warning for variable might be clobbered by longjmp.
Solution: Add volatile. (Michael Jarvis)
author | Bram Moolenaar <bram@vim.org> |
---|---|
date | Tue, 10 Feb 2015 19:27:05 +0100 |
parents | b10090446bbb |
children | 528828ab6ece |
files | src/main.c src/version.c |
diffstat | 2 files changed, 3 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/main.c +++ b/src/main.c @@ -1051,7 +1051,7 @@ main_loop(cmdwin, noexmode) int noexmode; /* TRUE when return on entering Ex mode */ { oparg_T oa; /* operator arguments */ - int previous_got_int = FALSE; /* "got_int" was TRUE */ + volatile int previous_got_int = FALSE; /* "got_int" was TRUE */ #ifdef FEAT_CONCEAL linenr_T conceal_old_cursor_line = 0; linenr_T conceal_new_cursor_line = 0;