To: vim_dev@googlegroups.com Subject: Patch 7.4.1943 Fcc: outbox From: Bram Moolenaar Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ------------ Patch 7.4.1943 Problem: Coverity warns for unreachable code. Solution: Remove the code that won't do anything. Files: src/mark.c *** ../vim-7.4.1942/src/mark.c 2016-06-15 21:44:47.645388277 +0200 --- src/mark.c 2016-06-17 22:34:50.606676980 +0200 *************** *** 1522,1533 **** ++idx; break; } if (idx < 0 && curwin->w_jumplistlen < JUMPLISTSIZE) /* insert as the oldest entry */ idx = 0; - else if (idx == 0 && curwin->w_jumplistlen == JUMPLISTSIZE) - /* no space to insert as the oldest entry */ - idx = -1; } else if (curwin->w_jumplistlen < JUMPLISTSIZE) /* insert as oldest entry */ --- 1522,1531 ---- ++idx; break; } + /* idx cannot be zero now */ if (idx < 0 && curwin->w_jumplistlen < JUMPLISTSIZE) /* insert as the oldest entry */ idx = 0; } else if (curwin->w_jumplistlen < JUMPLISTSIZE) /* insert as oldest entry */ *** ../vim-7.4.1942/src/version.c 2016-06-17 13:18:44.471431927 +0200 --- src/version.c 2016-06-17 22:35:47.866056642 +0200 *************** *** 755,756 **** --- 755,758 ---- { /* Add new patch number below this line */ + /**/ + 1943, /**/ -- hundred-and-one symptoms of being an internet addict: 103. When you find yourself in the "Computer" section of Barnes & Noble enjoying yourself. /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\ /// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\ \\\ an exciting new programming language -- http://www.Zimbu.org /// \\\ help me help AIDS victims -- http://ICCF-Holland.org ///