diff options
-rw-r--r-- | src/nvim/shada.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/nvim/shada.c b/src/nvim/shada.c index 86714a5eb7..f44594f372 100644 --- a/src/nvim/shada.c +++ b/src/nvim/shada.c @@ -3210,7 +3210,8 @@ static ShaDaReadResult fread_len(ShaDaReadDef *const sd_reader, const size_t length) FUNC_ATTR_NONNULL_ALL FUNC_ATTR_WARN_UNUSED_RESULT { - const ptrdiff_t read_bytes = sd_reader->read(sd_reader, buffer, length); + const ptrdiff_t read_bytes = sd_reader->read(sd_reader, buffer, length); + (void) read_bytes; if (sd_reader->error != NULL) { emsg2(_(SERR "System error while reading ShaDa file: %s"), |