aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/os_unix.c
diff options
context:
space:
mode:
authorJustin M. Keyes <justinkz@gmail.com>2018-02-07 02:32:50 +0100
committerGitHub <noreply@github.com>2018-02-07 02:32:50 +0100
commit538361955d123d9c93387f7597303c0ef59c6825 (patch)
treeda1fb4713917fd39fe6c3df2b06fc40a8d7ff71e /src/nvim/os_unix.c
parentb1412dc412e1308806ff65281d3dc29c1ffc7bdf (diff)
downloadrneovim-538361955d123d9c93387f7597303c0ef59c6825.tar.gz
rneovim-538361955d123d9c93387f7597303c0ef59c6825.tar.bz2
rneovim-538361955d123d9c93387f7597303c0ef59c6825.zip
exit: annotate FUNC_ATTR_NORETURN functions #7954 (#7954)
This should fix a particular false positive from clang 5.0.0 scan-build, which thinks that nlua_init() can continue after preserve_exit().
Diffstat (limited to 'src/nvim/os_unix.c')
-rw-r--r--src/nvim/os_unix.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/nvim/os_unix.c b/src/nvim/os_unix.c
index d7ba675b68..a27fee4e90 100644
--- a/src/nvim/os_unix.c
+++ b/src/nvim/os_unix.c
@@ -133,7 +133,8 @@ void mch_free_acl(vim_acl_T aclent)
}
#endif
-void mch_exit(int r) FUNC_ATTR_NORETURN
+void mch_exit(int r)
+ FUNC_ATTR_NORETURN
{
exiting = true;