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) {
This commit is contained in:
Björn Linse
2019-08-07 10:27:07 +02:00
committed by GitHub

View File

@@ -1945,6 +1945,7 @@ static int vgetorpeek(int advance)
// No matching mapping found or found a non-matching mapping that // No matching mapping found or found a non-matching mapping that
// matches at least what the matching mapping matched // matches at least what the matching mapping matched
keylen = 0; keylen = 0;
(void)keylen; // suppress clang/dead assignment
// If there was no mapping, use the character from the typeahead // If there was no mapping, use the character from the typeahead
// buffer right here. Otherwise, use the mapping (loop around). // buffer right here. Otherwise, use the mapping (loop around).
if (mp == NULL) { if (mp == NULL) {