This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Chill warning questions #2
- To: "Kaveh R. Ghazi" <ghazi at caip dot rutgers dot edu>
- Subject: Re: Chill warning questions #2
- From: Per Bothner <bothner at cygnus dot com>
- Date: Wed, 14 Oct 1998 16:53:41 -0700
- cc: brolley at cygnus dot com, egcs at cygnus dot com
> 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