From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Paul Eggert Newsgroups: gmane.emacs.bugs Subject: bug#51075: 29.0.50; Uninitialised variable warning in src/term.c Date: Thu, 7 Oct 2021 13:13:33 -0700 Organization: UCLA Computer Science Department Message-ID: <421a1f09-6b02-0e36-3763-010a21b3f39c@cs.ucla.edu> References: <87zgrl2idl.fsf@tcd.ie> <8335pd0z09.fsf@gnu.org> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="------------tQU3DWTXOIAnr4yuayaFE3oL" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="27421"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.1.0 Cc: 51075-done@debbugs.gnu.org To: Eli Zaretskii , "Basil L. Contovounesios" Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu Oct 07 22:41:19 2021 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mYaCd-0006vP-8M for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 07 Oct 2021 22:41:19 +0200 Original-Received: from localhost ([::1]:54236 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mYaCc-0003NN-7c for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 07 Oct 2021 16:41:18 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:34538) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mYZmF-0001a6-AF for bug-gnu-emacs@gnu.org; Thu, 07 Oct 2021 16:14:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:36936) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mYZmF-0008TL-0m for bug-gnu-emacs@gnu.org; Thu, 07 Oct 2021 16:14:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mYZmE-0004SA-TH for bug-gnu-emacs@gnu.org; Thu, 07 Oct 2021 16:14:02 -0400 Resent-From: Paul Eggert Original-Sender: "Debbugs-submit" Resent-To: bug-gnu-emacs@gnu.org Resent-Date: Thu, 07 Oct 2021 20:14:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: cc-closed 51075 X-GNU-PR-Package: emacs Mail-Followup-To: 51075@debbugs.gnu.org, eggert@cs.ucla.edu, contovob@tcd.ie Original-Received: via spool by 51075-done@debbugs.gnu.org id=D51075.163363762817078 (code D ref 51075); Thu, 07 Oct 2021 20:14:02 +0000 Original-Received: (at 51075-done) by debbugs.gnu.org; 7 Oct 2021 20:13:48 +0000 Original-Received: from localhost ([127.0.0.1]:48481 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mYZm0-0004RO-Hf for submit@debbugs.gnu.org; Thu, 07 Oct 2021 16:13:48 -0400 Original-Received: from zimbra.cs.ucla.edu ([131.179.128.68]:60440) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mYZly-0004RA-5O for 51075-done@debbugs.gnu.org; Thu, 07 Oct 2021 16:13:47 -0400 Original-Received: from localhost (localhost [127.0.0.1]) by zimbra.cs.ucla.edu (Postfix) with ESMTP id B5F69160117; Thu, 7 Oct 2021 13:13:40 -0700 (PDT) Original-Received: from zimbra.cs.ucla.edu ([127.0.0.1]) by localhost (zimbra.cs.ucla.edu [127.0.0.1]) (amavisd-new, port 10032) with ESMTP id frjXvFZnGeTn; Thu, 7 Oct 2021 13:13:39 -0700 (PDT) Original-Received: from localhost (localhost [127.0.0.1]) by zimbra.cs.ucla.edu (Postfix) with ESMTP id DD105160115; Thu, 7 Oct 2021 13:13:39 -0700 (PDT) X-Virus-Scanned: amavisd-new at zimbra.cs.ucla.edu Original-Received: from zimbra.cs.ucla.edu ([127.0.0.1]) by localhost (zimbra.cs.ucla.edu [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id UOi_Nwd1UKx0; Thu, 7 Oct 2021 13:13:39 -0700 (PDT) Original-Received: from [131.179.64.200] (Penguin.CS.UCLA.EDU [131.179.64.200]) by zimbra.cs.ucla.edu (Postfix) with ESMTPSA id A339D16011C; Thu, 7 Oct 2021 13:13:39 -0700 (PDT) Content-Language: en-US In-Reply-To: <8335pd0z09.fsf@gnu.org> X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:216683 Archived-At: This is a multi-part message in MIME format. --------------tQU3DWTXOIAnr4yuayaFE3oL Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit On 10/7/21 06:01, Eli Zaretskii wrote: > It's a bogus warning. It might be worth reporting to the GCC folks > (unless GCC 11 already fixed that). Yes, I believed it's fixed in GCC 11. GCC 11.2.1 20210728 (Red Hat 11.2.1-1) does not warn me about it. > Feel free to assign some value to gstring in the 'else' clause, to > shut up GCC in this case. I installed into the emacs-28 branch the attached, which fixes it in a different way to make it a bit clearer to the reader that we're pacifying an inadequate compiler rather than executing odd code for an unknown reason. There are a handful of other bogus warnings with GCC 11.2.1, which I'll try to get around to pacifying (I hope before GCC 12 comes out :-). --------------tQU3DWTXOIAnr4yuayaFE3oL Content-Type: text/x-patch; charset=UTF-8; name="0001-Pacify-GCC-10.3-Wmaybe-uninitialized.patch" Content-Disposition: attachment; filename="0001-Pacify-GCC-10.3-Wmaybe-uninitialized.patch" Content-Transfer-Encoding: base64 RnJvbSBhYzdiZDNmM2VjMWQxMmVhMjU1MzEyNzc4ZDViZTY3NGU1ZmJlMjkzIE1vbiBTZXAg MTcgMDA6MDA6MDAgMjAwMQpGcm9tOiBQYXVsIEVnZ2VydCA8ZWdnZXJ0QGNzLnVjbGEuZWR1 PgpEYXRlOiBUaHUsIDcgT2N0IDIwMjEgMTM6MDk6MTkgLTA3MDAKU3ViamVjdDogW1BBVENI XSBQYWNpZnkgR0NDIDEwLjMgLVdtYXliZS11bmluaXRpYWxpemVkCgpQcm9ibGVtIHJlcG9y dGVkIGJ5IEJhc2lsIEwuIENvbnRvdm91bmVzaW9zIChCdWcjNTEwNzUpLgoqIHNyYy90ZXJt LmMgKGVuY29kZV90ZXJtaW5hbF9jb2RlKToKQWRkIGFuIFVOSU5JVCB0byBwYWNpZnkgR0ND IDEwIGJ1Zy4KLS0tCiBzcmMvdGVybS5jIHwgMiArLQogMSBmaWxlIGNoYW5nZWQsIDEgaW5z ZXJ0aW9uKCspLCAxIGRlbGV0aW9uKC0pCgpkaWZmIC0tZ2l0IGEvc3JjL3Rlcm0uYyBiL3Ny Yy90ZXJtLmMKaW5kZXggMDg1OGY4MTY4NS4uNmYwYjgyN2NmYyAxMDA2NDQKLS0tIGEvc3Jj L3Rlcm0uYworKysgYi9zcmMvdGVybS5jCkBAIC01NTAsNyArNTUwLDcgQEAgZW5jb2RlX3Rl cm1pbmFsX2NvZGUgKHN0cnVjdCBnbHlwaCAqc3JjLCBpbnQgc3JjX2xlbiwKICAgICAgIGlm IChzcmMtPnR5cGUgPT0gQ09NUE9TSVRFX0dMWVBIKQogCXsKIAkgIHN0cnVjdCBjb21wb3Np dGlvbiAqY21wOwotCSAgTGlzcF9PYmplY3QgZ3N0cmluZzsKKwkgIExpc3BfT2JqZWN0IGdz dHJpbmcgVU5JTklUOwogCSAgaW50IGk7CiAKIAkgIG5ieXRlcyA9IGJ1ZiAtIGVuY29kZV90 ZXJtaW5hbF9zcmM7Ci0tIAoyLjMxLjEKCg== --------------tQU3DWTXOIAnr4yuayaFE3oL--