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

@@ -855,7 +855,7 @@ void ex_diffpatch(exarg_T *eap)
{
char_u *buf = NULL;
win_T *old_curwin = curwin;
char_u *newname = NULL; // name of patched file buffer
char_u *newname = NULL; // name of patched file buffer
char_u *esc_name = NULL;
#ifdef UNIX
@@ -886,9 +886,9 @@ void ex_diffpatch(exarg_T *eap)
esc_name = vim_strsave_shellescape(
#ifdef UNIX
fullname != NULL ? fullname :
fullname != NULL ? fullname :
#endif
eap->arg, true, true);
eap->arg, true, true);
if (esc_name == NULL) {
goto theend;
}