This is the mail archive of the fortran@gcc.gnu.org mailing list for the GNU Fortran project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]