https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87656

--- Comment #15 from David Binderman <dcb314 at hotmail dot com> ---
(In reply to Segher Boessenkool from comment #12)
> The only reason to remove support for this is if it actually simplifies the
> compiler code itself, which means we have to completely not support it
> anymore.

Standards conformance might well be a more important reason.

> So let's first have a default warning, and then see if anything in the wild
> still uses old-style functions defs?

I just compiled about 250 packages from Fedora Rawhide
with compiler flag -Wold-style-definition.

The average number of occurrences of the warning message per package is current
running around 30.

Admittedly a small sample of the 8,000 or so packages in Fedora Rawhide,
but current estimates are about 240,000 old style function definitions
for that distribution.

It might well be worthwhile putting -Wold-style-definition into -Wextra
for a year or so and see how we get on.

Reply via email to