unused variables


Is there a way to check which variables are declared but not used?
After a large makeover of a module, I’d like to eliminate all
variables that have become obsolete.


Hi Arjan,

pgf90 (as well as most F90 compilers) don’t check for unused variables. However, there are utiltiies available that do. Although I have not tried it, nor can recommend it, the utility “FortranLint” by Cleanspace looks promising. Another utility, ftncheck, is a free Lint like utiltiy but is only available for F77 code.

  • Mat