Fix compile time warning building gold with Clang-14.

* int_encoding.cc (get_length_as_unsigned_LEB_128): Remove
	current_length variable.
This commit is contained in:
Nick Clifton
2022-05-18 16:29:57 +01:00
parent 320f42099a
commit 2a89fa9613
2 changed files with 5 additions and 5 deletions

View File

@ -1,3 +1,8 @@
2022-05-18 Nick Clifton <nickc@redhat.com>
* int_encoding.cc (get_length_as_unsigned_LEB_128): Remove
current_length variable.
2022-02-17 Nick Clifton <nickc@redhat.com>
* po/sr.po: Updated Serbian translation.

View File

@ -119,12 +119,7 @@ get_length_as_unsigned_LEB_128(uint64_t value)
size_t length = 0;
do
{
unsigned char current_byte = value & 0x7f;
value >>= 7;
if (value != 0)
{
current_byte |= 0x80;
}
length++;
}
while (value != 0);