Merge pull request #23060 from neovim/backport-23059-to-release-0.9

[Backport release-0.9] vim-patch:partial:9.0.0364: clang static analyzer gives warnings
This commit is contained in:
zeertzjq
2023-04-13 13:43:47 +08:00
committed by GitHub

View File

@@ -3322,11 +3322,10 @@ int get_tags(list_T *list, char *pat, char *buf_fname)
} }
for (i = 0; i < num_matches; i++) { for (i = 0; i < num_matches; i++) {
int parse_result = parse_match(matches[i], &tp); if (parse_match(matches[i], &tp) == FAIL) {
xfree(matches[i]);
// Avoid an unused variable warning in release builds. continue;
(void)parse_result; }
assert(parse_result == OK);
bool is_static = test_for_static(&tp); bool is_static = test_for_static(&tp);