Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: PATCH: fix compiler warnings
- X-seq: zsh-workers 13936
- From: Wayne Davison <wayned@xxxxxxxxxxxxxxxxxxxxx>
- To: Zsh Workers <zsh-workers@xxxxxxxxxxxxxx>
- Subject: Re: PATCH: fix compiler warnings
- Date: Mon, 9 Apr 2001 13:25:35 -0700 (PDT)
- In-reply-to: <Pine.LNX.4.30.0104091303510.28864-200000@xxxxxxxxxxxxxxx>
- Mailing-list: contact zsh-workers-help@xxxxxxxxxx; run by ezmlm
On Mon, 9 Apr 2001, Wayne Davison wrote:
> The attached patch fixes [...] two warnings about static variables
> that were defined but never used
Sigh. Bart's unposted change made one of the variables necessary in
the HAVE_TIGETSTR case, but I checked my change in before recompiling.
(Bad! Bad Wayne!) I've fixed this in CVS. The change looks like
this:
Index: Src/Modules/terminfo.c
@@ -30,10 +30,11 @@
#include "terminfo.mdh"
#include "terminfo.pro"
+static char terminfo_nam[] = "terminfo";
+
/**/
#ifdef HAVE_TIGETSTR
-static char terminfo_nam[] = "terminfo";
static Param terminfo_pm;
/* echoti: output a terminfo capability */
..wayne..
Messages sorted by:
Reverse Date,
Date,
Thread,
Author