Chill warning questions #1

Kaveh R. Ghazi ghazi@caip.rutgers.edu
Fri Oct 9 18:23:00 GMT 1998


Hi Dave,

	Here are some more questions I have about warnings in the ch dir:

There are three "unused variable" warnings which during declaration
are set to function calls.  I didn't simply remove them in case the
function calls had necessary side effects.  We can:

A.  Remove them.  (Function calls aren't needed.)
B.  Call the functions after all variable declarations.
C.  If the functions must be called exactly as listed, we can mark the
variables with ATTRIBUTE_UNUSED.

parse.c: In function `parse_spec_module':
parse.c:547: warning: unused variable `module_name'

parse.c: In function `parse_operand6':
parse.c:3147: warning: unused variable `location'

inout.c: In function `init_text_location':
inout.c:2224: warning: unused variable `textlength'
--
Kaveh R. Ghazi			Engagement Manager / Project Services
ghazi@caip.rutgers.edu		Icon CMT Corp.



More information about the Gcc mailing list