From: Wayne Davison <wayne@clari.net>
To: Zsh Workers <zsh-workers@sunsite.auc.dk>
Subject: PATCH: silence a compiler warning
Date: Tue, 30 May 2000 22:20:47 -0700 (PDT) [thread overview]
Message-ID: <Pine.GSO.4.21.0005302213450.10370-100000@house.clari.net> (raw)
Here's a patch to silence the "potentially used uninitialized"
warning in Src/pattern.c. (I also had a patch for Zle/computil.c,
but it looks like Sven already fixed that one in the same way I did.)
..wayne..
---8<------8<------8<------8<---cut here--->8------>8------>8------>8---
Index: Src/pattern.c
@@ -807,7 +807,7 @@
static long
patcomppiece(int *flagp)
{
- long starter, next, pound, op;
+ long starter = 0, next, pound, op;
int flags, flags2, kshchar, len, ch, patch;
union upat up;
char *nptr, *str0, cbuf[2];
@@ -1025,7 +1025,6 @@
if (*patparse != Outang)
return 0;
patparse++;
- starter = 0; /* shut compiler up */
switch(len) {
case 3:
starter = patnode(P_NUMRNG);
---8<------8<------8<------8<---cut here--->8------>8------>8------>8---
reply other threads:[~2000-05-31 5:20 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=Pine.GSO.4.21.0005302213450.10370-100000@house.clari.net \
--to=wayne@clari.net \
--cc=zsh-workers@sunsite.auc.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).