zsh-workers
 help / color / mirror / code / Atom feed
* parse.pro:29: warning: `discard_input' declared `static' but never defined
@ 1997-08-03 23:32 Bart Schaefer
  1997-08-04  0:53 ` Zoltan Hidvegi
  0 siblings, 1 reply; 2+ messages in thread
From: Bart Schaefer @ 1997-08-03 23:32 UTC (permalink / raw)
  To: zsh-workers

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.

-- 
Bart Schaefer                                 Brass Lantern Enterprises
http://www.well.com/user/barts              http://www.brasslantern.com


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: parse.pro:29: warning: `discard_input' declared `static' but never defined
  1997-08-03 23:32 parse.pro:29: warning: `discard_input' declared `static' but never defined Bart Schaefer
@ 1997-08-04  0:53 ` Zoltan Hidvegi
  0 siblings, 0 replies; 2+ messages in thread
From: Zoltan Hidvegi @ 1997-08-04  0:53 UTC (permalink / raw)
  To: Bart Schaefer; +Cc: zsh-workers

> 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


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~1997-08-04  1:04 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1997-08-03 23:32 parse.pro:29: warning: `discard_input' declared `static' but never defined Bart Schaefer
1997-08-04  0:53 ` Zoltan Hidvegi

Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).