aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/tui
diff options
context:
space:
mode:
authorerw7 <erw7.github@gmail.com>2022-07-04 19:28:59 +0900
committerGitHub <noreply@github.com>2022-07-04 03:28:59 -0700
commit436747752bf1016d93101de24e39e192a0b721b4 (patch)
treee7e469ec692af661eb1f0e050f9ec9d3775e9b22 /src/nvim/tui
parentf075feee3258d15f6549e33c185f6165f9c7fbfc (diff)
downloadrneovim-436747752bf1016d93101de24e39e192a0b721b4.tar.gz
rneovim-436747752bf1016d93101de24e39e192a0b721b4.tar.bz2
rneovim-436747752bf1016d93101de24e39e192a0b721b4.zip
refactor: remove unnecessary volatile #19210
libuv does not call callback functions(uv_signal_cb) directly from signal handlers. Therefore, there is no need to use volatile. Ref. https://github.com/libuv/libuv/blob/1a91b51976a1adc6972081faa78b6b70022254d3/src/unix/signal.c#L183
Diffstat (limited to 'src/nvim/tui')
-rw-r--r--src/nvim/tui/tui.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nvim/tui/tui.c b/src/nvim/tui/tui.c
index f492792b20..bd66260457 100644
--- a/src/nvim/tui/tui.c
+++ b/src/nvim/tui/tui.c
@@ -137,7 +137,7 @@ struct TUIData {
char *space_buf;
};
-static bool volatile got_winch = false;
+static bool got_winch = false;
static bool did_user_set_dimensions = false;
static bool cursor_style_enabled = false;