On Thu, 14 Nov 2024, Florian Weimer wrote:
> * c-family/c-opts.cc (c_common_post_options): Initialize
> warn_missing_parameter_name.
> * c-family/c.opt (Wmissing-parameter-name): New.
> * c/c-decl.cc (store_parm_decls_newstyle): Use
> OPT_Wmissing_parameter_name for m
On Thu, Nov 14, 2024 at 07:09:04PM +, Joseph Myers wrote:
> On Thu, 14 Nov 2024, Florian Weimer wrote:
>
> > * c-family/c-opts.cc (c_common_post_options): Initialize
> > warn_missing_parameter_name.
> > * c-family/c.opt (Wmissing-parameter-name): New.
> > * c/c-decl.cc (store_p
Empirically, omitted parameter names are difficult to catch in code
review. With this change, projects can build with
-Werror=missing-parameter-name, to avoid this unnecessary
incompatibility with older GCC versions. The existing
-pedantic-errors option is too broad for that because it also flags