* Eric Gallager: > On Mon, Nov 20, 2023 at 4:58 AM Florian Weimer <fwei...@redhat.com> wrote: >> >> This used to be a warning, enabled by default, without its own option. > > Right, I meant to ask: why create a new option of > -Wdeclaration-missing-parameter-type instead of reusing the existing > -Wmissing-parameter-type for this?
It's documented as: ‘-Wmissing-parameter-type (C and Objective-C only)’ A function parameter is declared without a type specifier in K&R-style functions: void foo(bar) { } This warning is also enabled by ‘-Wextra’. What this doesn't say is that this has been subsumed by -Wimplicit-int in C99 and later language modes. Maybe we can tweak things such that -Wmissing-parameter-type controls declarations only in C99 and later language modes, and turn just that into a permerror. But the situation is confusing enough already, which is why I opted for the separate warning. Thanks, Florian