aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authordundargoc <33953936+dundargoc@users.noreply.github.com>2022-03-23 23:25:20 +0100
committerGitHub <noreply@github.com>2022-03-24 06:25:20 +0800
commitd3af109d10b2adab23ce2e95d99f0ffb642c7c42 (patch)
tree88cee4236081e2f5e616211846ebe061cbb2c90d /src
parent06131370a4e9d18e277577edddee082755513ad3 (diff)
downloadrneovim-d3af109d10b2adab23ce2e95d99f0ffb642c7c42.tar.gz
rneovim-d3af109d10b2adab23ce2e95d99f0ffb642c7c42.tar.bz2
rneovim-d3af109d10b2adab23ce2e95d99f0ffb642c7c42.zip
fix(PVS/V560): ignore false "conditional expression is always false" (#17830)
"'qi' points to the global variable 'ql_info' or the window local location list stack 'wp->w_llist'. The contents of these structures can be changed out-of-band by an autocmd." https://github.com/vim/vim/pull/9993#issuecomment-1076544168
Diffstat (limited to 'src')
-rw-r--r--src/nvim/quickfix.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/nvim/quickfix.c b/src/nvim/quickfix.c
index d868fe8284..9ee7b1cc8a 100644
--- a/src/nvim/quickfix.c
+++ b/src/nvim/quickfix.c
@@ -2792,8 +2792,8 @@ static int qf_jump_edit_buffer(qf_info_T *qi, qfline_T *qf_ptr, int forceit, int
return NOTDONE;
}
- if (old_qf_curlist != qi->qf_curlist
- || old_changetick != qfl->qf_changedtick
+ if (old_qf_curlist != qi->qf_curlist // -V560
+ || old_changetick != qfl->qf_changedtick // -V560
|| !is_qf_entry_present(qfl, qf_ptr)) {
if (qfl_type == QFLT_QUICKFIX) {
emsg(_(e_current_quickfix_list_was_changed));
@@ -2894,7 +2894,7 @@ static int qf_jump_open_window(qf_info_T *qi, qfline_T *qf_ptr, bool newwin, int
}
}
if (old_qf_curlist != qi->qf_curlist
- || old_changetick != qfl->qf_changedtick
+ || old_changetick != qfl->qf_changedtick // -V560
|| !is_qf_entry_present(qfl, qf_ptr)) {
if (qfl_type == QFLT_QUICKFIX) {
emsg(_(e_current_quickfix_list_was_changed));