diff options
author | dundargoc <33953936+dundargoc@users.noreply.github.com> | 2022-03-26 01:02:42 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-03-25 18:02:42 -0600 |
commit | 876d22fca9a102141f3b1bc6776f4bdd855099fb (patch) | |
tree | 2a0b4a792718554f47c058e0d82648996dc4da0d | |
parent | 61205c1defb64ac5466496b5451e4a7f3171e21e (diff) | |
download | rneovim-876d22fca9a102141f3b1bc6776f4bdd855099fb.tar.gz rneovim-876d22fca9a102141f3b1bc6776f4bdd855099fb.tar.bz2 rneovim-876d22fca9a102141f3b1bc6776f4bdd855099fb.zip |
fix(clang/'Dead store'): do not assign endcol (#17788)
-rw-r--r-- | src/nvim/ui_client.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/nvim/ui_client.c b/src/nvim/ui_client.c index 49971ac501..6a7695bf72 100644 --- a/src/nvim/ui_client.c +++ b/src/nvim/ui_client.c @@ -151,10 +151,8 @@ void ui_client_event_grid_line(Array args) Integer startcol = args.items[2].data.integer; Array cells = args.items[3].data.array; - Integer endcol, clearcol; // TODO(hlpr98): Accommodate other LineFlags when included in grid_line LineFlags lineflags = 0; - endcol = startcol; size_t j = 0; int cur_attr = 0; @@ -203,8 +201,8 @@ void ui_client_event_grid_line(Array args) } } - endcol = startcol + (int)j; - clearcol = endcol + clear_width; + Integer endcol = startcol + (int)j; + Integer clearcol = endcol + clear_width; clear_attr = cur_attr; ui_call_raw_line(grid, row, startcol, endcol, clearcol, clear_attr, lineflags, |