Add 'FUNC_ATTR_NONNULL_RET' to nonnull alloc funcs (#14559)

This commit is contained in:
Jan Edmund Lazo
2021-05-15 20:36:13 -04:00
committed by GitHub
parent d67dcaba02
commit 6ab83f3572
5 changed files with 10 additions and 5 deletions

View File

@@ -1677,6 +1677,7 @@ static void int_wordlist_spl(char_u *fname)
// Allocate a new slang_T for language "lang". "lang" can be NULL.
// Caller must fill "sl_next".
slang_T *slang_alloc(char_u *lang)
FUNC_ATTR_NONNULL_RET
{
slang_T *lp = xcalloc(1, sizeof(slang_T));