GNU bug report logs - #58291
29.0.50; MacOS compilation warning for possibly unitialized use in emacs.c

Previous Next

Package: emacs;

Reported by: Gerd Möllmann <gerd.moellmann <at> gmail.com>

Date: Tue, 4 Oct 2022 15:27:01 UTC

Severity: normal

Found in version 29.0.50

Done: Stefan Kangas <stefankangas <at> gmail.com>

Bug is archived. No further changes may be made.

Full log


Message #13 received at 58291-done <at> debbugs.gnu.org (full text, mbox):

From: Stefan Kangas <stefankangas <at> gmail.com>
To: Lars Ingebrigtsen <larsi <at> gnus.org>,
 Gerd Möllmann <gerd.moellmann <at> gmail.com>
Cc: 58291-done <at> debbugs.gnu.org, Andreas Schwab <schwab <at> linux-m68k.org>
Subject: Re: bug#58291: 29.0.50; MacOS compilation warning for possibly
 unitialized use in emacs.c
Date: Tue, 4 Oct 2022 20:57:57 +0200
Lars Ingebrigtsen <larsi <at> gnus.org> writes:

> Gerd Möllmann <gerd.moellmann <at> gmail.com> writes:
>
>> This is latest master as of writing this.  When compiling emacs, I see
>>
>> emacs.c:899:7: warning: variable 'bufsize' is used uninitialized whenever 'if' condition is true [-Wsometimes-uninitialized]
>>   if (!(emacs_executable && *emacs_executable))
>>       ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>> emacs.c:964:7: note: uninitialized use occurs here
>>   if (bufsize < needed)
>>       ^~~~~~~
>
> I guess this might be related to Andreas' recent fix?  Added to the CCs.

This is fixed on emacs-28 and merged to master.  Closing.




This bug report was last modified 2 years and 281 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.