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().
This commit is contained in:
Justin M. Keyes
2018-02-07 02:32:50 +01:00
committed by GitHub
parent b1412dc412
commit 538361955d
5 changed files with 13 additions and 12 deletions

View File

@@ -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;