mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-03 21:34:46 +08:00
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:
@ -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.
|
||||
|
@ -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);
|
||||
|
Reference in New Issue
Block a user