https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108694

--- Comment #7 from Florian Weimer <fw at gcc dot gnu.org> ---
(In reply to Mark Wielaard from comment #6)
> (In reply to Bruno Haible from comment #5)
> > Now that GCC 15 is released, with -std=gnu23 as the default, this ticket is
> > no longer needed.
> 
> I think it is still needed to have a way to warn about the empty argument
> list, even if this is now defined/allowed in C23.

We have this:

‘-Wdeprecated-non-prototype (C and Objective-C only)’
     Warn if a function declared with an empty parameter list ‘()’ is
     called with one or more arguments, or if a function definition with
     one or more parameters is encountered after such a declaration.
     Both cases are errors in C23 and later dialects of C.

     This warning is also enabled by ‘-Wc11-c23-compat’.

I don't think it's good use of developer time to change () to (void) where this
is possible, so I believe this warning is sufficient.

Reply via email to