This is the mail archive of the
fortran@gcc.gnu.org
mailing list for the GNU Fortran project.
Explosion of noise from -Wall
- From: Steve Kargl <sgk at troutmask dot apl dot washington dot edu>
- To: fortran at gcc dot gnu dot org
- Date: Tue, 21 Aug 2012 14:22:34 -0700
- Subject: Explosion of noise from -Wall
While I can appreciate the value of the new warnings
recently added to gfortran, it seems the automatic
inclusion of these options when -Wall is used causes
an explosion of noise.
Netlib BLAS (old crufty F77):
% grep Warning sgk.log | wc -l
780
% grep "Warning: Eq" sgk.log | wc -l
344
% grep "Warning: Ineq" sgk.log | wc -l
412
Polyhedron (shiny new F95):
% grep Warning zxc | wc -l
628
% grep "Warning: Eq" zxc | wc -l
147
% grep "Warning: Ineq" zxc | wc -l
102
-Wall at one time was usable to find questionable code.
Now one needs to do '-Wall -Wno-conversion -Wno-compare-real'
to silence a large amount of false positives. I don't
have CP2K or Damian's code available, it may be interesting
to see what happens with a fairly modern codebase.
--
Steve