0
0
mirror of https://github.com/vim/vim.git synced 2025-09-24 03:44:06 -04:00

patch 8.1.1862: Coverity warns for not using return value

Problem:    Coverity warns for not using return value.
Solution:   Add "(void)" to avoid the warning.
This commit is contained in:
Bram Moolenaar
2019-08-16 21:54:27 +02:00
parent 24278d2407
commit 9c272a9e52
2 changed files with 3 additions and 1 deletions

View File

@@ -8065,7 +8065,7 @@ nv_g_cmd(cmdarg_T *cap)
{
if (cap->count1 > 1)
// if it fails, let the cursor still move to the last char
cursor_down(cap->count1 - 1, FALSE);
(void)cursor_down(cap->count1 - 1, FALSE);
i = curwin->w_leftcol + curwin->w_width - col_off - 1;
coladvance((colnr_T)i);