diff options
author | Eliseo Martínez <eliseomarmol@gmail.com> | 2014-11-04 15:41:39 +0100 |
---|---|---|
committer | Eliseo Martínez <eliseomarmol@gmail.com> | 2014-11-06 09:51:43 +0100 |
commit | 04b4658978fd6e34d2c8e018bd58a9f74880d4be (patch) | |
tree | 8be4c90bab04d1b0f1bbe44d1eb4b9b89ecf2f56 | |
parent | 1eb46675b7f755526f588c495fd4f4409f646a67 (diff) | |
download | rneovim-04b4658978fd6e34d2c8e018bd58a9f74880d4be.tar.gz rneovim-04b4658978fd6e34d2c8e018bd58a9f74880d4be.tar.bz2 rneovim-04b4658978fd6e34d2c8e018bd58a9f74880d4be.zip |
Fix warnings: screen.c: win_line(): Dead assigment: HI.
Problem: Dead assigment.
http://neovim.org/doc/reports/clang/report-7362ba.html#EndPath
Diagnostic: Harmless issue.
Rationale : `boguscols` is in fact unread by downstream code.
Resolution: Comment out. This is preferred here over just removing the
line because involved logic is complex, and future readers
of this code could find this extra knowledge useful to
understand what the code is doing.
-rw-r--r-- | src/nvim/screen.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nvim/screen.c b/src/nvim/screen.c index 7fd44d80f0..52b0cf3c29 100644 --- a/src/nvim/screen.c +++ b/src/nvim/screen.c @@ -3867,7 +3867,7 @@ win_line ( /* Get rid of the boguscols now, we want to draw until the right * edge for 'cursorcolumn'. */ col -= boguscols; - boguscols = 0; + // boguscols = 0; // Disabled because value never read after this if (draw_color_col) draw_color_col = advance_color_col(VCOL_HLC, &color_cols); |