aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorBjörn Linse <bjorn.linse@gmail.com>2019-08-07 10:27:07 +0200
committerGitHub <noreply@github.com>2019-08-07 10:27:07 +0200
commitd75fc87decfa0a4ec8282aac4d6d6f47bf4a3bb0 (patch)
treecf18377ca247ce1fc8f1cb225ed1d1f94e7d215f /src
parent6fb0020df4eb799004c4a13bcf3326c4b1cf3fe5 (diff)
parent512f24f71d24517e737024e83b1909b153492231 (diff)
downloadrneovim-d75fc87decfa0a4ec8282aac4d6d6f47bf4a3bb0.tar.gz
rneovim-d75fc87decfa0a4ec8282aac4d6d6f47bf4a3bb0.tar.bz2
rneovim-d75fc87decfa0a4ec8282aac4d6d6f47bf4a3bb0.zip
Merge pull request #10703 from ngortheone/clang_dead2
clang/"dead assignment": suppessed getchar.c Possibly invalid, read on line 1972: if (keylen >= 0 && keylen <= typebuf.tb_len) {
Diffstat (limited to 'src')
-rw-r--r--src/nvim/getchar.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/nvim/getchar.c b/src/nvim/getchar.c
index f7614fd3e1..03f64c2019 100644
--- a/src/nvim/getchar.c
+++ b/src/nvim/getchar.c
@@ -1945,6 +1945,7 @@ static int vgetorpeek(int advance)
// No matching mapping found or found a non-matching mapping that
// matches at least what the matching mapping matched
keylen = 0;
+ (void)keylen; // suppress clang/dead assignment
// If there was no mapping, use the character from the typeahead
// buffer right here. Otherwise, use the mapping (loop around).
if (mp == NULL) {