This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]