mirror of
https://github.com/neovim/neovim.git
synced 2025-10-05 09:26:30 +00:00
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. 1a91b51976/src/unix/signal.c (L183)
This commit is contained in:
@@ -165,8 +165,7 @@ static char *signal_name(int signum)
|
||||
// This function handles deadly signals.
|
||||
// It tries to preserve any swap files and exit properly.
|
||||
// (partly from Elvis).
|
||||
// NOTE: Avoid unsafe functions, such as allocating memory, they can result in
|
||||
// a deadlock.
|
||||
// NOTE: this is scheduled on the event loop, not called directly from a signal handler.
|
||||
static void deadly_signal(int signum)
|
||||
FUNC_ATTR_NORETURN
|
||||
{
|
||||
|
Reference in New Issue
Block a user