Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: parse.pro:29: warning: `discard_input' declared `static' but never defined
- X-seq: zsh-workers 3407
- From: Zoltan Hidvegi <hzoli@xxxxxxxxxxxxxxx>
- To: schaefer@xxxxxxxxxxxxxxxx (Bart Schaefer)
- Subject: Re: parse.pro:29: warning: `discard_input' declared `static' but never defined
- Date: Sun, 3 Aug 1997 20:53:03 -0400 (EDT)
- Cc: zsh-workers@xxxxxxxxxxxxxxx
- In-reply-to: <970803163249.ZM11636@xxxxxxxxxxxxxxxxxxxxxxx> from Bart Schaefer at "Aug 3, 97 04:32:49 pm"
> 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
Messages sorted by:
Reverse Date,
Date,
Thread,
Author