Mercurial > vim
changeset 17730:2fe133c7e972 v8.1.1862
patch 8.1.1862: Coverity warns for not using return value
commit https://github.com/vim/vim/commit/9c272a9e52c914d6630f2cc887da89f63e7e983a
Author: Bram Moolenaar <Bram@vim.org>
Date: Fri Aug 16 21:54:27 2019 +0200
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.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Fri, 16 Aug 2019 22:00:05 +0200 |
parents | e73dd20c69f4 |
children | 314da6ab06bd |
files | src/normal.c src/version.c |
diffstat | 2 files changed, 3 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/normal.c +++ b/src/normal.c @@ -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);