Chill warning questions #2
Per Bothner
bothner@cygnus.com
Wed Oct 14 16:54:00 GMT 1998
> 2. In the following case, did you mean to use "=", not "=="?
> typeck.c: In function `build_chill_cast':
> typeck.c:1214: warning: statement with no effect
> > TREE_READONLY (expr) == TYPE_READONLY (type);
Yes, it should be a "=".
> 4. What should have been printed here?
> tasking.c: In function `build_signal_descriptor':
> tasking.c:1275: warning: char format, tree_node arg (arg 2)
> tree signame = DECL_NAME (sigdef);
> [...]
> error ("SEND requires a SIGNAL; %s is not a SIGNAL name", signame);
It should be ... IDENTIFIER_POINTER (signame));
Assuming you have egcs write permission, please go ahead with these fixes.
--Per Bothner
Cygnus Solutions bothner@cygnus.com http://www.cygnus.com/~bothner
More information about the Gcc
mailing list