mirror of
https://github.com/vim/vim.git
synced 2025-09-27 04:14:06 -04:00
patch 8.2.5141: using "volatile int" in a signal handler might be wrong
Problem: Using "volatile int" in a signal handler might be wrong. Solution: Use "volatile sig_atomic_t".
This commit is contained in:
@@ -21,8 +21,8 @@
|
||||
#endif
|
||||
|
||||
#ifdef FEAT_RELTIME
|
||||
static int dummy_timeout_flag = 0;
|
||||
static volatile int *timeout_flag = &dummy_timeout_flag;
|
||||
static sig_atomic_t dummy_timeout_flag = 0;
|
||||
static volatile sig_atomic_t *timeout_flag = &dummy_timeout_flag;
|
||||
#endif
|
||||
|
||||
/*
|
||||
|
Reference in New Issue
Block a user