diff options
author | Eliseo Martínez <eliseomarmol@gmail.com> | 2014-11-04 15:41:42 +0100 |
---|---|---|
committer | Eliseo Martínez <eliseomarmol@gmail.com> | 2014-11-06 09:51:44 +0100 |
commit | bd7ee7d6a95d8d2fa1162c4169418e0ed13af7a9 (patch) | |
tree | b57ce7df2d8ca8cc76be5c8ece29142ece9bc0ca | |
parent | cc996e748db6d367aacea0fbe985f5568c5d9909 (diff) | |
download | rneovim-bd7ee7d6a95d8d2fa1162c4169418e0ed13af7a9.tar.gz rneovim-bd7ee7d6a95d8d2fa1162c4169418e0ed13af7a9.tar.bz2 rneovim-bd7ee7d6a95d8d2fa1162c4169418e0ed13af7a9.zip |
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.
-rw-r--r-- | src/nvim/screen.c | 1 |
1 files changed, 0 insertions, 1 deletions
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) { |