refactor(PVS): suppress false positive V547 in drawline.c (#21875)

This is a false positive as "did_emsg" can be set by get_syntax_attr()

Example: get_syntax_attr() -> syn_current_attr() -> syn_getcurline()
-> ml_get_buf() -> siemsg() -> semsgv() -> emsg() -> emsg_multiline()
This commit is contained in:
Lucas Merritt 2023-01-17 19:36:23 -07:00 committed by GitHub
parent 0133fbb37a
commit 2082d275fe
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1824,7 +1824,7 @@ int win_line(win_T *wp, linenr_T lnum, int startrow, int endrow, bool nochange,
syntax_attr = get_syntax_attr((colnr_T)v - 1,
has_spell ? &can_spell : NULL, false);
if (did_emsg) {
if (did_emsg) { // -V547
wp->w_s->b_syn_error = true;
has_syntax = false;
} else {