Use -Wimplicit for gfortran?

Tom Browder tom.browder@gmail.com
Wed Jan 7 21:44:00 GMT 2009


When introducing a large body of legacy code to gfortran it would be
useful to have gcc's '-Wimplicit' option warn of explicit IMPLICIT
statements (or else make another gfortran-specific warning to do it).

The '-fimplict-none' option can be overridden by explicit IMPLICIT
statements so that wouldn't help.

Of course one can always throw grep at the code, but that isn't a
satisfactory solution for me.

Thoughts?

Thanks.

-Tom

Tom Browder
Niceville, Florida
USA



More information about the Fortran mailing list