Skip to content

Commit 2c23670

Browse files
committed
patch 8.2.3636: Coverity warns for unreachable code
Problem: Coverity warns for unreachable code. Solution: Remove unreachable else block.
1 parent 3c19b50 commit 2c23670

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
lines changed

src/gui_gtk_x11.c

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5604,7 +5604,7 @@ gui_gtk2_draw_string(int row, int col, char_u *s, int len, int flags)
56045604
{
56055605
slen++; // ligature char by char
56065606
}
5607-
else if (is_utf8)
5607+
else // is_utf8
56085608
{
56095609
if ((*(cs + slen) & 0xC0) == 0x80)
56105610
{
@@ -5638,10 +5638,6 @@ gui_gtk2_draw_string(int row, int col, char_u *s, int len, int flags)
56385638
slen++;
56395639
}
56405640
}
5641-
else
5642-
{
5643-
slen++;
5644-
}
56455641
}
56465642
else
56475643
{

src/version.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -757,6 +757,8 @@ static char *(features[]) =
757757

758758
static int included_patches[] =
759759
{ /* Add new patch number below this line */
760+
/**/
761+
3636,
760762
/**/
761763
3635,
762764
/**/

0 commit comments

Comments
 (0)