From 9f4229ca918d62064f71a1612d1290851d153297 Mon Sep 17 00:00:00 2001 From: Hendrik Muhs Date: Sun, 16 Jun 2024 22:07:15 +0200 Subject: [PATCH] fix warning --- keyvi/include/keyvi/util/vint.h | 2 -- 1 file changed, 2 deletions(-) diff --git a/keyvi/include/keyvi/util/vint.h b/keyvi/include/keyvi/util/vint.h index cb34e92de..295a4b2bc 100644 --- a/keyvi/include/keyvi/util/vint.h +++ b/keyvi/include/keyvi/util/vint.h @@ -145,13 +145,11 @@ void encodeVarInt(int_t value, buffer_t* output, size_t* written_bytes) { */ template void encodeVarInt(int_t value, buffer_t* output) { - size_t length = 0; while (value > 127) { // |128: Set the next byte flag output->push_back(((uint8_t)(value & 127)) | 128); // Remove the seven bits we just wrote value >>= 7; - ++length; } output->push_back(((uint8_t)value) & 127); }