toms@ncifcrf.gov wrote:
I am compiling my programs with both GPC and Sun's compiler. A service that the Sun compiler provides is to check that a variable is actually used or set. For example, it will say:
pc0: WorkShop Compilers 4.2 01/04/00 Pascal 4.2 patch 104632-11 Wed Oct 31 08:05:05 2001 numcode.p: In procedure checkcount: w 18260 variable f is neither used nor set
This would be a very useful feature to have as it allows one to remove unused or leftover variables. In this case I was using a global (output) when I should have been using the locally defined file!
Try `-Wall'.
Frank