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

@@ -2099,6 +2099,7 @@ static bool file_owned(const char *fname)
/// @param errstr string containing an error message
/// @param str string to append to the primary error message, or NULL
static void mainerr(const char *errstr, const char *str)
FUNC_ATTR_NORETURN
{
char *prgname = (char *)path_tail((char_u *)argv0);