From 2c519cf3bfe76083767ac94c674d2e161ed36587 Mon Sep 17 00:00:00 2001 From: Bram Moolenaar Date: Thu, 21 Mar 2019 21:45:34 +0100 Subject: patch 8.1.1032: warnings from clang static analyzer Problem: Warnings from clang static analyzer. (Yegappan Lakshmanan) Solution: Fix relevant warnings. --- src/charset.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/charset.c') diff --git a/src/charset.c b/src/charset.c index 1d66d617a..3eb5b5805 100644 --- a/src/charset.c +++ b/src/charset.c @@ -1055,7 +1055,6 @@ win_lbr_chartabsize( if (col2 >= colmax) /* doesn't fit */ { size = colmax - col + col_adj; - tab_corr = FALSE; break; } } @@ -1108,7 +1107,8 @@ win_lbr_chartabsize( { /* calculate effective window width */ int width = (colnr_T)wp->w_width - sbrlen - numberwidth; - int prev_width = col ? ((colnr_T)wp->w_width - (sbrlen + col)) : 0; + int prev_width = col + ? ((colnr_T)wp->w_width - (sbrlen + col)) : 0; if (width == 0) width = (colnr_T)wp->w_width; added += ((size - prev_width) / width) * vim_strsize(p_sbr); @@ -1963,7 +1963,7 @@ hexhex2nr(char_u *p) /* * Return TRUE if "str" starts with a backslash that should be removed. - * For MS-DOS, WIN32 and OS/2 this is only done when the character after the + * For MS-DOS, MSWIN and OS/2 this is only done when the character after the * backslash is not a normal file name character. * '$' is a valid file name character, we don't remove the backslash before * it. This means it is not possible to use an environment variable after a -- cgit v1.2.1