This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c/11246] warning: no previous prototype for foobar_func ()
- From: "bangerth at dealii dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 18 Jun 2003 23:14:03 -0000
- Subject: [Bug c/11246] warning: no previous prototype for foobar_func ()
- References: <20030618224234.11246.saptor@hotmail.com>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
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.