From: Alan Modra Date: Tue, 9 Nov 2021 23:56:10 +0000 (+1030) Subject: Re: Add --unicode option X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=a9a09f5114c60e9900bc3a5663486d42ff5c2e73;p=binutils-gdb.git Re: Add --unicode option 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