mirror of
https://github.com/neovim/neovim.git
synced 2025-09-22 11:18:19 +00:00
clang/"dead assignment": screen.c #10702
Suppress the warning. mb_c and mb_l describe a char together, they are not independent variables. The coupled assignments are good practice to avoid future confusion, even if the current code doesn't use an assigned value.
This commit is contained in:

committed by
Justin M. Keyes

parent
7086751c5e
commit
b09e03c64d
@@ -3143,6 +3143,7 @@ win_line (
|
||||
c = '>';
|
||||
mb_c = c;
|
||||
mb_l = 1;
|
||||
(void)mb_l;
|
||||
multi_attr = win_hl_attr(wp, HLF_AT);
|
||||
|
||||
// put the pointer back to output the double-width
|
||||
@@ -3153,9 +3154,9 @@ win_line (
|
||||
n_extra -= mb_l - 1;
|
||||
p_extra += mb_l - 1;
|
||||
}
|
||||
++p_extra;
|
||||
p_extra++;
|
||||
}
|
||||
--n_extra;
|
||||
n_extra--;
|
||||
} else {
|
||||
int c0;
|
||||
|
||||
|
Reference in New Issue
Block a user