From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 28568 invoked from network); 9 Apr 2001 20:25:43 -0000 Received: from sunsite.dk (130.225.51.30) by ns1.primenet.com.au with SMTP; 9 Apr 2001 20:25:43 -0000 Received: (qmail 7261 invoked by alias); 9 Apr 2001 20:25:40 -0000 Mailing-List: contact zsh-workers-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 13936 Received: (qmail 7248 invoked from network); 9 Apr 2001 20:25:39 -0000 Date: Mon, 9 Apr 2001 13:25:35 -0700 (PDT) From: Wayne Davison To: Zsh Workers Subject: Re: PATCH: fix compiler warnings In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII 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..