mirror of
https://github.com/neovim/neovim.git
synced 2025-10-06 01:46:29 +00:00
chore: add additional compiler flags (#17815)
Added: - -Wdouble-promotion - -Wmissing-noreturn - -Wmissing-format-attribute - -Wsuggest-attribute={pure,const,malloc,cold} Resolves: #343
This commit is contained in:
@@ -152,6 +152,7 @@ static char *signal_name(int signum)
|
||||
// NOTE: Avoid unsafe functions, such as allocating memory, they can result in
|
||||
// a deadlock.
|
||||
static void deadly_signal(int signum)
|
||||
FUNC_ATTR_NORETURN
|
||||
{
|
||||
// Set the v:dying variable.
|
||||
set_vim_var_nr(VV_DYING, 1);
|
||||
|
Reference in New Issue
Block a user