Subject: Re: bug#58291: 29.0.50; MacOS compilation warning for possibly unitialized use in emacs.c
From: Stefan Kangas <[email-masked]>
To: Lars Ingebrigtsen <[email-masked]>,Gerd Möllmann <[email-masked]>
Cc: [email-masked], Andreas Schwab <[email-masked]>
Date: Tue, 4 Oct 2022 20:57:57 +0200
List-Id: <debbugs-submit.debbugs.gnu.org>

Lars Ingebrigtsen <[email-masked]> writes:

> Gerd Möllmann <[email-masked]> 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.