This is the mail archive of the gcc@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]

Re: -Wstrict-prototypes and void foo () {}


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~


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