From: Nick Clifton <nickc@redhat.com>
To: binutils@sourceware.org
Date: Wed, 18 May 2022 16:29:31 +0100 [thread overview]
Message-ID: <87h75m7tb8.fsf@redhat.com> (raw)
Hi Guys,
Compiling GOLD with Clang-14 produces a compile time warning about the
current_byte variable being unused in int_encoding.cc:
get_length_as_unsigned_LEB_128(), so I am checking in the obvious fix
below.
Cheers
Nick
gold/ChangeLog
2022-05-18 Nick Clifton <nickc@redhat.com>
* int_encoding.cc (get_length_as_unsigned_LEB_128): Remove
current_length variable.
diff --git a/gold/int_encoding.cc b/gold/int_encoding.cc
index d27b2af4c21..196e0b3b509 100644
--- a/gold/int_encoding.cc
+++ b/gold/int_encoding.cc
@@ -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);
reply other threads:[~2022-05-18 15:29 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87h75m7tb8.fsf@redhat.com \
--to=nickc@redhat.com \
--cc=binutils@sourceware.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).