From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-pf1-x431.google.com (mail-pf1-x431.google.com [IPv6:2607:f8b0:4864:20::431]) by sourceware.org (Postfix) with ESMTPS id 3FF7A3858404 for ; Wed, 10 Nov 2021 00:42:07 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 3FF7A3858404 Received: by mail-pf1-x431.google.com with SMTP id g19so1022414pfb.8 for ; Tue, 09 Nov 2021 16:42:07 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=oqRDhn1rGGymV7lpBy+5uKUZuW1BgQUnIcLGEhu1otw=; b=pLz0BrqSg9YCa3K1SctzOvgS07RqtQMhwGb0tmiR+QbD9e4Mib9syYdPOTMQ2worCG c+UeNi6BpAoZixCkbBuf3pL7ZRb24I84yMHPWy1vLGMTkJK62tWPLzceOuEMJOvTI0Sn 6nxk6knCoRjSWwHX8dRxWGm9aTI70UnegiqFLTpo665+hH+KMFFZow99PALd/jgZsli1 sqJrTCPQCmxmCjXhWEGrL1C3lwJedsiNCEi4x22HWl4s5Tj2O3sEu2sRul68dwa2FIoR jkpDeU03XDsBJGbP1ImVOGQPiuLuigEzfNs+IziBK9xbSp/yjH90FHIIpNFEQbz0kRzn pBww== X-Gm-Message-State: AOAM530TekB9FHAQiNUWZt3CYkVJKWQue+nilboaGiC2y4ujd0S+IXOC lNWzcUNxOmTAox+6mgDVs/iLi4v1ueY= X-Google-Smtp-Source: ABdhPJyAcGMF3HyeIs56npPDefam3msqklaLINwyp8BKzc+6BPgixRuCgJq4tNTotaVczH9oWiZBBg== X-Received: by 2002:a65:4209:: with SMTP id c9mr9110881pgq.399.1636504926448; Tue, 09 Nov 2021 16:42:06 -0800 (PST) Received: from squeak.grove.modra.org ([2406:3400:51d:8cc0:4803:fad9:5cfb:2b72]) by smtp.gmail.com with ESMTPSA id m7sm16223062pgn.32.2021.11.09.16.42.05 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 09 Nov 2021 16:42:05 -0800 (PST) Received: by squeak.grove.modra.org (Postfix, from userid 1000) id 1FCB01140B4D; Wed, 10 Nov 2021 11:12:03 +1030 (ACDT) Date: Wed, 10 Nov 2021 11:12:03 +1030 From: Alan Modra To: Nick Clifton Cc: binutils@sourceware.org Subject: Re: Commit: Add support for displaying unicode characters Message-ID: References: <87v9115um8.fsf@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <87v9115um8.fsf@redhat.com> X-Spam-Status: No, score=-3037.7 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, FREEMAIL_FROM, GIT_PATCH_0, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS, TXREP autolearn=ham autolearn_force=no version=3.4.4 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on server2.sourceware.org X-BeenThere: binutils@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Binutils mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 10 Nov 2021 00:42:08 -0000 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