Hi,
I'm looking for tips on how to quiet "set but never used"
warnings so that I can turn on -Werror (so any warnings
produce compilation failures).
I quite often encounter the idiom,
integer :: nblocks_dum ! position holder for read
[..]
read(8) nblocks_dum, other, useful, data
due to reading files we have no control over. As we don't
need nblocks_dum, this produces a "set but never used"
warning for nblocks_dum.
Is there a clear way to avoid this warning, or otherwise
cir***vent it? (I still want to this warning for otherwise
legitmate set-but-never-used cruft.)
Thanks,
--
Bil Kleb
http://fun3d.larc.nasa.gov


|