From b09e03c64d0f38a43b5ef068141bc86e365cd7fa Mon Sep 17 00:00:00 2001 From: Ihor Antonov Date: Mon, 5 Aug 2019 18:53:54 -0400 Subject: 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. --- src/nvim/screen.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/nvim/screen.c b/src/nvim/screen.c index 06f886d411..fb019a4d2d 100644 --- a/src/nvim/screen.c +++ b/src/nvim/screen.c @@ -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; -- cgit