diff options
author | Björn Linse <bjorn.linse@gmail.com> | 2019-08-07 10:27:07 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-08-07 10:27:07 +0200 |
commit | d75fc87decfa0a4ec8282aac4d6d6f47bf4a3bb0 (patch) | |
tree | cf18377ca247ce1fc8f1cb225ed1d1f94e7d215f /src | |
parent | 6fb0020df4eb799004c4a13bcf3326c4b1cf3fe5 (diff) | |
parent | 512f24f71d24517e737024e83b1909b153492231 (diff) | |
download | rneovim-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.c | 1 |
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) { |