This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: -Wstrict-prototypes and void foo () {}
- From: Richard Henderson <rth at redhat dot com>
- To: Doug Evans <dje at transmeta dot com>
- Cc: gcc at gcc dot gnu dot org
- Date: Mon, 5 May 2003 15:32:04 -0700
- Subject: Re: -Wstrict-prototypes and void foo () {}
- References: <200305052230.PAA04682@casey.transmeta.com>
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~