From bd7ee7d6a95d8d2fa1162c4169418e0ed13af7a9 Mon Sep 17 00:00:00 2001 From: Eliseo Martínez Date: Tue, 4 Nov 2014 15:41:42 +0100 Subject: Fix warnings: screen.c: draw_tabline(): Dead assignment: HI. Problem: Dead assignment @ 7711. http://neovim.org/doc/reports/clang/report-835eb6.html#EndPath Diagnostic: Harmless issue. Rationale : `scol` is only used within `FOR_ALL_TABS` body, which assigns another value to `scol` at the beginning of each iteration. If `FOR_ALL_TABS` body would not execute (no tabs) nothing harmful would happen, as code following `FOR_ALL_TABS` doesn't use `scol`. Resolution: Remove. --- src/nvim/screen.c | 1 - 1 file changed, 1 deletion(-) (limited to 'src') diff --git a/src/nvim/screen.c b/src/nvim/screen.c index 439fe14e86..e217945ac3 100644 --- a/src/nvim/screen.c +++ b/src/nvim/screen.c @@ -7709,7 +7709,6 @@ static void draw_tabline(void) attr = attr_nosel; tabcount = 0; - scol = 0; FOR_ALL_TABS(tp) { if (col >= Columns - 4) { -- cgit