From 512f24f71d24517e737024e83b1909b153492231 Mon Sep 17 00:00:00 2001 From: Ihor Antonov Date: Mon, 5 Aug 2019 18:40:31 -0400 Subject: clang/"dead assignment": suppessed To ensure consistency and avoid possible errors in the code the assigment is considered to be legit. --- src/nvim/getchar.c | 1 + 1 file changed, 1 insertion(+) (limited to 'src') 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) { -- cgit