-Wstrict-prototypes and void foo () {}

Richard Henderson rth@redhat.com
Mon May 5 22:34:00 GMT 2003


On Mon, May 05, 2003 at 03:30:11PM -0700, Doug Evans wrote:
> Having to go and change lots of function definitions from
...
> -foo ()
> +foo (void)
...
> is a pain _and_ an eyesore.

No, I don't think we can: foo() *isn't* a prototype in C.
Which means that you won't get any diagnostic for "foo(3)".


r~



More information about the Gcc mailing list