From 63d4a6537d8bf1a62b769e594171577b8bbcdd8d Mon Sep 17 00:00:00 2001 From: Jan Edmund Lazo Date: Sun, 25 Oct 2020 02:24:07 -0400 Subject: 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. https://github.com/vim/vim/commit/9c272a9e52c914d6630f2cc887da89f63e7e983a --- src/nvim/normal.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/nvim/normal.c b/src/nvim/normal.c index a51aa0dc07..1cc400166c 100644 --- a/src/nvim/normal.c +++ b/src/nvim/normal.c @@ -6841,7 +6841,7 @@ static void nv_g_cmd(cmdarg_T *cap) } else { 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_inner - col_off - 1; coladvance((colnr_T)i); -- cgit