From 32df42549a49124976e1993218cd560833777482 Mon Sep 17 00:00:00 2001 From: Nick Neisen Date: Wed, 16 May 2018 19:17:56 -0600 Subject: coverity/13700: ignore failed win_split() win_split() does EMSG for all failure cases, so we don't need to log it. Easiest thing to do here is ignore the return value (otherwise we need to do some cleanup and might require some refactoring. jumpto_tag() can deal with a failed split, so it's no big deal. --- src/nvim/tag.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/nvim/tag.c b/src/nvim/tag.c index f23465e501..ba2727f0d7 100644 --- a/src/nvim/tag.c +++ b/src/nvim/tag.c @@ -2407,8 +2407,8 @@ jumpto_tag ( /* If it was a CTRL-W CTRL-] command split window now. For ":tab tag" * open a new tab page. */ if (postponed_split || cmdmod.tab != 0) { - win_split(postponed_split > 0 ? postponed_split : 0, - postponed_split_flags); + (void)win_split(postponed_split > 0 ? postponed_split : 0, + postponed_split_flags); RESET_BINDING(curwin); } -- cgit