On Tue, Nov 14, 2023 at 06:50:58PM +0100, Florian Weimer wrote: > --- a/gcc/c-family/c.opt > +++ b/gcc/c-family/c.opt > @@ -591,6 +591,10 @@ Wdeclaration-after-statement > C ObjC Var(warn_declaration_after_statement) Init(-1) Warning > Warn when a declaration is found after a statement. > > +Wdeclaration-missing-parameter-type > +C ObjC Warning > +Warn for missing parameter types in function declarations. > +
This doesn't have Var(warn_declaration_missing_parameter), so -fpermissive -Wno-declaration-missing-parameter-type still warns for void foo (i); where I think the warning should be suppressed. Is that expected? It would be nice to have a test for that combination. Marek