aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorIhor Antonov <ngortheone@users.noreply.github.com>2019-08-05 18:53:54 -0400
committerJustin M. Keyes <justinkz@gmail.com>2019-08-06 00:53:54 +0200
commitb09e03c64d0f38a43b5ef068141bc86e365cd7fa (patch)
tree63478b3f935288ee44068ca17279a300bbddcf05 /src
parent7086751c5e4eb3cfee0b98df0d3cedc8bff47d35 (diff)
downloadrneovim-b09e03c64d0f38a43b5ef068141bc86e365cd7fa.tar.gz
rneovim-b09e03c64d0f38a43b5ef068141bc86e365cd7fa.tar.bz2
rneovim-b09e03c64d0f38a43b5ef068141bc86e365cd7fa.zip
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.
Diffstat (limited to 'src')
-rw-r--r--src/nvim/screen.c5
1 files changed, 3 insertions, 2 deletions
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;