mirror of
https://github.com/neovim/neovim.git
synced 2025-09-06 03:18:16 +00:00
vim-patch:partial:9.0.0364: clang static analyzer gives warnings
Problem: Clang static analyzer gives warnings. Solution: Avoid the warnings. (Yegappan Lakshmanan, closes vim/vim#11043)c99e182e1f
Co-authored-by: Yegappan Lakshmanan <yegappan@yahoo.com> (cherry picked from commit13c76c4b0d
)
This commit is contained in:

committed by
github-actions[bot]
![github-actions[bot]](/assets/img/avatar_default.png)
parent
232fdf2ccd
commit
30627250bd
@@ -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);
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user