bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#51075: 29.0.50; Uninitialised variable warning in src/term.c


From: Paul Eggert
Subject: bug#51075: 29.0.50; Uninitialised variable warning in src/term.c
Date: Thu, 7 Oct 2021 13:13:33 -0700
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.1.0

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 :-).

Attachment: 0001-Pacify-GCC-10.3-Wmaybe-uninitialized.patch
Description: Text Data


reply via email to

[Prev in Thread] Current Thread [Next in Thread]