refactor: suppress clang and PVS warnings (#19940)

This commit is contained in:
zeertzjq
2022-08-25 15:20:54 +08:00
committed by GitHub
parent 5c9baa6f35
commit f0658fd552
4 changed files with 4 additions and 1 deletions

View File

@@ -791,6 +791,7 @@ static void ex_unletlock(exarg_T *eap, char *argstart, int deep, ex_unletlock_ca
semsg(_(e_invarg2), arg - 1);
return;
}
assert(*lv.ll_name == '$'); // suppress clang "Uninitialized argument value"
if (!error && !eap->skip && callback(&lv, arg, eap, deep) == FAIL) {
error = true;
}