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/os | |
| 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/os')
| -rw-r--r-- | src/nvim/os/input.c | 1 | ||||
| -rw-r--r-- | src/nvim/os/signal.c | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/src/nvim/os/input.c b/src/nvim/os/input.c index 54cfaee80a..c6c4990334 100644 --- a/src/nvim/os/input.c +++ b/src/nvim/os/input.c @@ -522,6 +522,7 @@ static bool input_ready(MultiQueue *events) // Exit because of an input read error. static void read_error_exit(void) + FUNC_ATTR_NORETURN { if (silent_mode) { // Normal way to exit for "nvim -es". getout(0); diff --git a/src/nvim/os/signal.c b/src/nvim/os/signal.c index a8bf68a1a2..327ab6bc48 100644 --- a/src/nvim/os/signal.c +++ b/src/nvim/os/signal.c @@ -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); |