1
0
forked from aniani/vim

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);

View File

@ -769,6 +769,8 @@ static char *(features[]) =
static int included_patches[] =
{ /* Add new patch number below this line */
/**/
1862,
/**/
1861,
/**/