0
0
mirror of https://github.com/vim/vim.git synced 2025-09-23 03:43:49 -04:00

patch 9.0.1241: Coverity warns for not checking function return value

Problem:    Coverity warns for not checking function return value.
Solution:   Explicitly ignore the return value.
This commit is contained in:
Bram Moolenaar
2023-01-25 12:27:13 +00:00
parent 62a6923470
commit b582010350
2 changed files with 3 additions and 1 deletions

View File

@@ -192,7 +192,7 @@ get_function_line(
&& *eap->cmdlinep == ((char_u **)lines_to_free->ga_data)
[lines_to_free->ga_len - 1])
*eap->cmdlinep = theline;
ga_add_string(lines_to_free, theline);
(void)ga_add_string(lines_to_free, theline);
}
return theline;