not used or set

toms at ncifcrf.gov toms at ncifcrf.gov
Wed Oct 31 14:09:43 CET 2001


Folks:

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!

Tom

  Dr. Thomas D. Schneider
  National Cancer Institute
  Laboratory of Experimental and Computational Biology
  Frederick, Maryland  21702-1201
  toms at ncifcrf.gov
  permanent email: toms at alum.mit.edu
  http://www.lecb.ncifcrf.gov/~toms/




More information about the Gpc mailing list