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:
Ihor Antonov
2019-08-05 18:53:54 -04:00
committed by Justin M. Keyes
parent 7086751c5e
commit b09e03c64d

View File

@@ -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;