diff src/screen.c @ 16054:78faa25f9698 v8.1.1032

patch 8.1.1032: warnings from clang static analyzer commit https://github.com/vim/vim/commit/2c519cf3bfe76083767ac94c674d2e161ed36587 Author: Bram Moolenaar <Bram@vim.org> Date: Thu Mar 21 21:45:34 2019 +0100 patch 8.1.1032: warnings from clang static analyzer Problem: Warnings from clang static analyzer. (Yegappan Lakshmanan) Solution: Fix relevant warnings.
author Bram Moolenaar <Bram@vim.org>
date Thu, 21 Mar 2019 22:00:05 +0100
parents f362d695bcf9
children dc0801e374e0
line wrap: on
line diff
--- a/src/screen.c
+++ b/src/screen.c
@@ -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, in
     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)