0
0
mirror of https://github.com/vim/vim.git synced 2025-10-02 05:04:20 -04:00

patch 8.1.1032: warnings from clang static analyzer

Problem:    Warnings from clang static analyzer. (Yegappan Lakshmanan)
Solution:   Fix relevant warnings.
This commit is contained in:
Bram Moolenaar
2019-03-21 21:45:34 +01:00
parent f7e47af776
commit 2c519cf3bf
13 changed files with 20 additions and 29 deletions

View File

@@ -4900,7 +4900,7 @@ win_line(
else
{
char_u *p;
int len = n_extra;
int len;
int i;
int saved_nextra = n_extra;
@@ -5505,8 +5505,8 @@ win_line(
if (vcol < v + col - win_col_off(wp))
vcol = v + col - win_col_off(wp);
#ifdef FEAT_CONCEAL
/* Get rid of the boguscols now, we want to draw until the right
* edge for 'cursorcolumn'. */
// Get rid of the boguscols now, we want to draw until the right
// edge for 'cursorcolumn'.
col -= boguscols;
boguscols = 0;
#endif
@@ -10466,7 +10466,6 @@ draw_tabline(void)
attr = attr_nosel;
tabcount = 0;
scol = 0;
for (tp = first_tabpage; tp != NULL && col < Columns - 4;
tp = tp->tp_next)
{
@@ -10799,7 +10798,7 @@ win_redr_ruler(win_T *wp, int always, int ignore_pum)
int o;
int this_ru_col;
int off = 0;
int width = Columns;
int width;
/* If 'ruler' off or redrawing disabled, don't do anything */
if (!p_ru)