summaryrefslogtreecommitdiff
path: root/src/main.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2015-02-10 19:27:05 +0100
committerBram Moolenaar <Bram@vim.org>2015-02-10 19:27:05 +0100
commit8872ef1b4e1b304cc168ea4c8f68645498c155be (patch)
treeb982de6057fa3faee9103cd2dc8a8fca95bdbbe8 /src/main.c
parent494838a3fec2fb1abcac6256271810a762225bed (diff)
downloadvim-git-8872ef1b4e1b304cc168ea4c8f68645498c155be.tar.gz
updated for version 7.4.628v7.4.628
Problem: Compiler warning for variable might be clobbered by longjmp. Solution: Add volatile. (Michael Jarvis)
Diffstat (limited to 'src/main.c')
-rw-r--r--src/main.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main.c b/src/main.c
index ec83d8f14..885192bed 100644
--- 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;