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:
Lewis Russell
2022-03-24 11:14:04 +00:00
committed by GitHub
parent 0c45753119
commit fcd57980f9
10 changed files with 42 additions and 16 deletions

View File

@@ -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);