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

@@ -577,8 +577,9 @@ int main(int argc, char **argv)
return 0;
}
/* Exit properly */
/// Exit properly
void getout(int exitval)
FUNC_ATTR_NORETURN
{
tabpage_T *tp, *next_tp;