clang/"dead assignment": suppessed

To ensure consistency and avoid possible errors in the code
the assigment is considered to be legit.
This commit is contained in:
Ihor Antonov
2019-08-05 18:40:31 -04:00
parent f5d1e0e7b1
commit 512f24f71d

View File

@@ -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) {