fix PVS warnings (#18459)

* fix(PVS/V547): remove ifs that are always true or false

* fix(PVS/V560): remove partial conditions that are always true

* fix(PVS/V1044): suppress warning about loop break conditions

* fix(PVS/V1063): suppress "modulo by 1 operation is meaningless"

* fix(PVS/V568): suppress "operator evaluates the size of a pointer"

Also mark vim-patch:8.2.4958 as ported.
This commit is contained in:
dundargoc
2022-05-15 15:04:56 +02:00
committed by GitHub
parent 4c7462fdb3
commit 793496aecc
10 changed files with 31 additions and 38 deletions

View File

@@ -1153,7 +1153,7 @@ size_t aucmd_pattern_length(char *pat)
char *endpat;
for (; *pat; pat = (*endpat == ',' ? endpat + 1 : endpat)) {
for (; *pat; pat = endpat + 1) {
// Find end of the pattern.
// Watch out for a comma in braces, like "*.\{obj,o\}".
endpat = pat;