aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/main.c
diff options
context:
space:
mode:
authorLewis Russell <lewis6991@gmail.com>2022-03-24 11:14:04 +0000
committerGitHub <noreply@github.com>2022-03-24 12:14:04 +0100
commitfcd57980f91ca01227b46de1659e6228115e1278 (patch)
tree5664b765c65c7fef78315d0ae91505f796a1e7df /src/nvim/main.c
parent0c4575311936bb015eecbf806074393170ef2038 (diff)
downloadrneovim-fcd57980f91ca01227b46de1659e6228115e1278.tar.gz
rneovim-fcd57980f91ca01227b46de1659e6228115e1278.tar.bz2
rneovim-fcd57980f91ca01227b46de1659e6228115e1278.zip
chore: add additional compiler flags (#17815)
Added: - -Wdouble-promotion - -Wmissing-noreturn - -Wmissing-format-attribute - -Wsuggest-attribute={pure,const,malloc,cold} Resolves: #343
Diffstat (limited to 'src/nvim/main.c')
-rw-r--r--src/nvim/main.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/nvim/main.c b/src/nvim/main.c
index dec1ae93e7..afb9313cba 100644
--- a/src/nvim/main.c
+++ b/src/nvim/main.c
@@ -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);