all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Stefan Kangas <stefankangas@gmail.com>
To: "Lars Ingebrigtsen" <larsi@gnus.org>,
	"Gerd Möllmann" <gerd.moellmann@gmail.com>
Cc: 58291-done@debbugs.gnu.org, Andreas Schwab <schwab@linux-m68k.org>
Subject: bug#58291: 29.0.50; MacOS compilation warning for possibly unitialized use in emacs.c
Date: Tue, 4 Oct 2022 20:57:57 +0200	[thread overview]
Message-ID: <CADwFkmnHbcxjxoLwJXLU59O0iuJH-7X8annMv6G2XLa=p4m-sg@mail.gmail.com> (raw)
In-Reply-To: <87v8oz5t5i.fsf@gnus.org>

Lars Ingebrigtsen <larsi@gnus.org> writes:

> Gerd Möllmann <gerd.moellmann@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.





      reply	other threads:[~2022-10-04 18:57 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-10-04 15:26 bug#58291: 29.0.50; MacOS compilation warning for possibly unitialized use in emacs.c Gerd Möllmann
2022-10-04 18:40 ` Lars Ingebrigtsen
2022-10-04 18:57   ` Stefan Kangas [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CADwFkmnHbcxjxoLwJXLU59O0iuJH-7X8annMv6G2XLa=p4m-sg@mail.gmail.com' \
    --to=stefankangas@gmail.com \
    --cc=58291-done@debbugs.gnu.org \
    --cc=gerd.moellmann@gmail.com \
    --cc=larsi@gnus.org \
    --cc=schwab@linux-m68k.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.