[Bug c/11246] warning: no previous prototype for foobar_func ()

bangerth at dealii dot org gcc-bugzilla@gcc.gnu.org
Wed Jun 18 23:14:00 GMT 2003


PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=11246



------- Additional Comments From bangerth at dealii dot org  2003-06-18 23:14 -------
Confirmed. I'm not a specialist in old-times C, but IIRC 
  void f();
simply defined the existence of f(), but not its argument list. For that,
you really needed
  void f(void);

I don't know whether this behavior is changed in later standards, but
at least passing -std=c89 or -std=c99 doesn't change anything for this
warning.

W.



More information about the Gcc-bugs mailing list