https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108694
Mark Wielaard <mark at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |mark at gcc dot gnu.org Last reconfirmed| |2025-08-30 Ever confirmed|0 |1 Resolution|WONTFIX |--- Status|RESOLVED |REOPENED --- Comment #6 from Mark Wielaard <mark at gcc dot gnu.org> --- (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. Programs using -Werror=strict-prototypes and/or -Werror=old-style-definition used to warn about the func3 () examples given above. But now suddenly don't because GCC 15 defaults to -std=gnu23. Which can cause you to add such empty argument lists which are then not accepted when using an older GCC that defaults to an older standard. Maybe the warning can come back if the above warnings are used with -Wc11-c23-compat or -Wc17-c23-compat?