mirror of
https://github.com/neovim/neovim.git
synced 2025-02-25 18:55:25 -06:00
PVS/V535: shada.c: variable reassigned in inner loop
False positive: `i` is intentionally, temporarily reassigned.
See a70fde1b45
#9425
This commit is contained in:
parent
6a432d4a0d
commit
423b6d9907
@ -4008,7 +4008,7 @@ shada_read_next_item_start:
|
||||
// XXX: Temporarily reassign `i` because the macros depend on it.
|
||||
const size_t j = i;
|
||||
{
|
||||
for (i = 0; i < unpacked_2.data.via.map.size; i++) {
|
||||
for (i = 0; i < unpacked_2.data.via.map.size; i++) { // -V535
|
||||
CHECK_KEY_IS_STR(unpacked_2, "buffer list entry")
|
||||
LONG_KEY(unpacked_2, "buffer list entry", KEY_LNUM,
|
||||
entry->data.buffer_list.buffers[j].pos.lnum)
|
||||
|
Loading…
Reference in New Issue
Block a user