On Thu, Nov 14, 2024 at 07:09:04PM +0000, 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_parm_decls_newstyle): Use
> > OPT_Wmissing_parameter_name for missing parameter name
> > warning.
> > * c/c-errors.cc (pedwarn_c11): Enable fine-grained warning
> > control via the option_id argument.
> > * doc/invoke.texi: Document Wmissing-parameter-name.
> > * testsuite/gcc.dg/Wmissing-parameter-name-1.c: New test.
> > * testsuite/gcc.dg/Wmissing-parameter-name-2.c: New test.
> > * testsuite/gcc.dg/Wmissing-parameter-name-3.c: New test.
>
> ChangeLog entries should go in appropriate subdirectory ChangeLogs, e.g.
>
> c-family/
> * c-family/c-opts.cc (c_common_post_options): Initialize
> [...]
* c-opts.cc (c_common_post_options): Initialize
even (though git hooks ought to catch that).
Jakub