From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 14376 invoked from network); 4 Aug 1997 01:04:14 -0000 Received: from euclid.skiles.gatech.edu (list@130.207.146.50) by coral.primenet.com.au with SMTP; 4 Aug 1997 01:04:14 -0000 Received: (from list@localhost) by euclid.skiles.gatech.edu (8.8.5/8.8.5) id UAA24972; Sun, 3 Aug 1997 20:53:07 -0400 (EDT) Resent-Date: Sun, 3 Aug 1997 20:53:07 -0400 (EDT) From: Zoltan Hidvegi Message-Id: <199708040053.UAA02537@hzoli.home> Subject: Re: parse.pro:29: warning: `discard_input' declared `static' but never defined In-Reply-To: <970803163249.ZM11636@candle.brasslantern.com> from Bart Schaefer at "Aug 3, 97 04:32:49 pm" To: schaefer@brasslantern.com (Bart Schaefer) Date: Sun, 3 Aug 1997 20:53:03 -0400 (EDT) Cc: zsh-workers@math.gatech.edu X-Mailer: ELM [version 2.4ME+ PL31 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Resent-Message-ID: <"RGBks2.0.666.oVIvp"@euclid> Resent-From: zsh-workers@math.gatech.edu X-Mailing-List: archive/latest/3407 X-Loop: zsh-workers@math.gatech.edu Precedence: list Resent-Sender: zsh-workers-request@math.gatech.edu > I just got around to applying Zoltan's patch for nonblocking reads, and > started getting the warning message that appears in the subject. > > Static functions shouldn't be included in prototyping headers that are > included by other .c files. For nonblocking reads? That was in the patch for the [[ bug bug ]] bug that caused BUG: wrong character in hungetc(). That's because the patch was made for 3.1.2 but it also applies to 3.0.4. Just remove the static keyword in parse.c from discard input. Alternatively remove the /**/ mark before the function, and either move the function to the top of the file, or put a forward declaration to the beginning. But the warning is really harmless, and the best and most convinient solution is to just ignore it. Zoltan