diff options
author | Lewis Russell <lewis6991@gmail.com> | 2022-03-24 11:14:04 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-03-24 12:14:04 +0100 |
commit | fcd57980f91ca01227b46de1659e6228115e1278 (patch) | |
tree | 5664b765c65c7fef78315d0ae91505f796a1e7df /src/nvim/ex_docmd.c | |
parent | 0c4575311936bb015eecbf806074393170ef2038 (diff) | |
download | rneovim-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/ex_docmd.c')
-rw-r--r-- | src/nvim/ex_docmd.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/nvim/ex_docmd.c b/src/nvim/ex_docmd.c index dab17fc3a4..0dbc9d6b14 100644 --- a/src/nvim/ex_docmd.c +++ b/src/nvim/ex_docmd.c @@ -6629,6 +6629,7 @@ static void ex_quit(exarg_T *eap) /// ":cquit". static void ex_cquit(exarg_T *eap) + FUNC_ATTR_NORETURN { // this does not always pass on the exit code to the Manx compiler. why? getout(eap->addr_count > 0 ? (int)eap->line2 : EXIT_FAILURE); |