[committed] c: C2x removal of unprototyped functions

Joseph Myers joseph@codesourcery.com
Mon Sep 5 19:51:59 GMT 2022


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 diagnose these?

It could probably be made to diagnose such cases (it doesn't come 
automatically because this change involves changed semantics for syntax 
that's valid in both standard versions).

-- 
Joseph S. Myers
joseph@codesourcery.com


More information about the Gcc-patches mailing list