[patch, fortran] Reduce Explosion of noise from -Wall
N.M. Maclaren
nmm1@cam.ac.uk
Thu Aug 23 11:52:00 GMT 2012
On Aug 23 2012, Dominique Dhumieres wrote:
>
>Does it make sense to warn for a==b, but not for a-b==0.0?
It can do. I am unconvinced.
>Now as a user I can remember -Wextra as well as -Wall and I think
>the warnings about conversions and floating-point comparisons
>should go in -Wextra.
I disagree about the narrowing conversions. They really are a very
serious problem.
A better approach (generally) would be more flexible limits on the
warnings - e.g. only a certain number of each type would be produced
(with a higher default for -Wextra than -Wall than -w, and an option
to change) and probably a summary at the end.
Regards,
Nick Maclaren.
More information about the Fortran
mailing list