Re: [committed] c: C2x removal of unprototyped functions

2022-09-05 Thread Joseph Myers
On Fri, 2 Sep 2022, Richard Biener via Gcc-patches wrote: > To catch these cases with a diagnostic earlier is > -Wstrict-prototypes -Wold-style-declaration enough to diagnose all cases > that the new standard will reject? I think so. > I suppose -W*-c2x-compat are not the correct vehicle to

Re: [committed] c: C2x removal of unprototyped functions

2022-09-02 Thread Richard Biener via Gcc-patches
On Thu, Sep 1, 2022 at 11:18 PM Jeff Law via Gcc-patches wrote: > > > > On 9/1/2022 1:12 PM, Joseph Myers wrote: > > C2x has completely removed unprototyped functions, so that () now > > means the same as (void) in both function declarations and > > definitions, where previously that change had

Re: [committed] c: C2x removal of unprototyped functions

2022-09-01 Thread Jeff Law via Gcc-patches
On 9/1/2022 1:12 PM, Joseph Myers wrote: C2x has completely removed unprototyped functions, so that () now means the same as (void) in both function declarations and definitions, where previously that change had been made for definitions only. Implement this accordingly. This is a change

[committed] c: C2x removal of unprototyped functions

2022-09-01 Thread Joseph Myers
C2x has completely removed unprototyped functions, so that () now means the same as (void) in both function declarations and definitions, where previously that change had been made for definitions only. Implement this accordingly. This is a change where GNU/Linux distribution builders might wish