[comp.sys.mac.programmer] Bug in C error reporting

wb1j+@andrew.cmu.edu (William M. Bumgarner) (04/12/89)

### Warning 254 Local variable "a" not used within the body of the function :  XFCN
#--------------------------------------------------------------------------------------------------------------------------------
    File "CDReadTOC.c"; Line 147
#--------------------------------------------------------------------------------------------------------------------------------



Ok, fine... reports such thing just fine... It is correct, a was not used.
Triple clicking on the line that should open the file and select the line in
which the error encountered doesn't do so...

it opens the file and selects the last line in the function... Why not open the
file to where the declaration was made?  Most of the time an unused variable
comes from a previous revison; a variable that is no longer needed, but the
declaration was never removed.  So select the declaration... the other case,
where it is a variable that was meant to be used, but the person forgot it
would require some fairly heft AI programming to get MPW to place the cursor
in the right area (MPW 4.0?? :-)...

b.bum
wb1j+@andrew.cmu.edu