Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: parse.pro:29: warning: `discard_input' declared `static' but never defined



> 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