From: Alan Modra <amodra@gmail.com>
To: Nick Clifton <nickc@redhat.com>
Cc: binutils@sourceware.org
Subject: Re: Commit: Add support for displaying unicode characters
Date: Wed, 10 Nov 2021 11:12:03 +1030 [thread overview]
Message-ID: <YYsVW2aPv20MSjZr@squeak.grove.modra.org> (raw)
In-Reply-To: <87v9115um8.fsf@redhat.com>
At low optimisation levels gcc may warn.
* strings.c (print_unicode_stream_body): Avoid bogus "may be
used unitialised" warning.
diff --git a/binutils/strings.c b/binutils/strings.c
index f50badf983e..e8649a80d6a 100644
--- a/binutils/strings.c
+++ b/binutils/strings.c
@@ -924,7 +924,7 @@ print_unicode_stream_body (const char * filename,
uint num_read = 0;
uint num_chars = 0;
uint num_print = 0;
- int c;
+ int c = 0;
/* Find a series of string_min characters. Put them into print_buf. */
do
--
Alan Modra
Australia Development Lab, IBM
next prev parent reply other threads:[~2021-11-10 0:42 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-11-09 13:25 Nick Clifton
2021-11-10 0:42 ` Alan Modra [this message]
2021-11-15 13:21 ` Nick Clifton
2022-05-08 5:46 ` Fangrui Song
[not found] ` <DS7PR12MB5765635B31F15184375B9140CBC79@DS7PR12MB5765.namprd12.prod.outlook.com>
2022-05-09 16:26 ` Nick Clifton
2022-05-10 4:21 ` Fangrui Song
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=YYsVW2aPv20MSjZr@squeak.grove.modra.org \
--to=amodra@gmail.com \
--cc=binutils@sourceware.org \
--cc=nickc@redhat.com \
/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).