From: Bart Schaefer <schaefer@brasslantern.com>
To: Zsh users list <zsh-users@sunsite.dk>
Subject: Re: zle_thingy.c: variable "modsave" used before its value set
Date: Mon, 12 Apr 2004 08:21:20 -0700 [thread overview]
Message-ID: <040412082120.ZM19014@candle.brasslantern.com> (raw)
In-Reply-To: <20040412090436.GC28460@blorf.net>
On Apr 12, 2:04am, Wayne Davison wrote:
>
> The variable can't actually be used uninitialized -- the compiler just
> thinks it can.
>
> If we want to get rid of the warning, I'd recommend making the struct
> static rather than initializing it to an unneeded value on every call.
Are you really sure that bin_zle_call() is not re-entrant? Seems to me
that the whole point of modsave is that it is a stack variable.
next prev parent reply other threads:[~2004-04-12 15:22 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-03-12 17:23 4.2.0-pre-4 Peter Stephenson
2004-03-12 18:58 ` 4.2.0-pre-4 Peter Stephenson
2004-03-15 11:30 ` 4.2.0-pre-4 Ibraheem Umaru-Mohammed
2004-03-15 16:20 ` 4.2.0-pre-4 Peter Stephenson
2004-04-12 1:38 ` zle_thingy.c: variable "modsave" used before its value set Jens Petersen
2004-04-12 9:04 ` Wayne Davison
2004-04-12 15:21 ` Bart Schaefer [this message]
2004-04-12 16:22 ` Wayne Davison
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=040412082120.ZM19014@candle.brasslantern.com \
--to=schaefer@brasslantern.com \
--cc=zsh-users@sunsite.dk \
/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 public inbox
https://git.vuxu.org/mirror/zsh/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).