Explosion of noise from -Wall

Steve Kargl sgk@troutmask.apl.washington.edu
Tue Aug 21 21:22:00 GMT 2012


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



More information about the Fortran mailing list