From: Andreas Schwab <schwab@linux-m68k.org>
To: "Pierre Muller" <pierre.muller@ics-cnrs.unistra.fr>
Cc: "'Pedro Alves'" <pedro@codesourcery.com>, <gdb-patches@sourceware.org>
Subject: Re: [RFA] ARI fix: avoid assignment in if clause in xcoffread.c
Date: Tue, 19 Apr 2011 14:33:00 -0000 [thread overview]
Message-ID: <m27haqfgzq.fsf@igel.home> (raw)
In-Reply-To: <36908.1941120841$1303222432@news.gmane.org> (Pierre Muller's message of "Tue, 19 Apr 2011 16:13:22 +0200")
"Pierre Muller" <pierre.muller@ics-cnrs.unistra.fr> writes:
> + pp = (char *) strchr (name, ':');
The cast is useless, though, so I checked this in as obvious.
Andreas.
2011-04-19 Andreas Schwab <schwab@linux-m68k.org>
* xcoffread.c (process_xcoff_symbol): Remove useless cast.
(scan_xcoff_symtab): Likewise.
--- xcoffread.c.~1.86.~ 2011-04-19 16:25:37.000000000 +0200
+++ xcoffread.c 2011-04-19 16:26:41.000000000 +0200
@@ -1588,7 +1588,7 @@ process_xcoff_symbol (struct coff_symbol
if (*name == ':')
return NULL;
- pp = (char *) strchr (name, ':');
+ pp = strchr (name, ':');
if (pp == NULL)
return NULL;
@@ -2623,7 +2623,7 @@ scan_xcoff_symtab (struct objfile *objfi
swap_sym (&symbol, &main_aux[0], &namestring, &sraw_symbol,
&ssymnum, objfile);
- p = (char *) strchr (namestring, ':');
+ p = strchr (namestring, ':');
if (!p)
continue; /* Not a debugging symbol. */
--
Andreas Schwab, schwab@linux-m68k.org
GPG Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5
"And now for something completely different."
prev parent reply other threads:[~2011-04-19 14:33 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-04-19 13:42 Pierre Muller
2011-04-19 14:02 ` Pedro Alves
2011-04-19 14:13 ` Pierre Muller
[not found] ` <36908.1941120841$1303222432@news.gmane.org>
2011-04-19 14:33 ` Andreas Schwab [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=m27haqfgzq.fsf@igel.home \
--to=schwab@linux-m68k.org \
--cc=gdb-patches@sourceware.org \
--cc=pedro@codesourcery.com \
--cc=pierre.muller@ics-cnrs.unistra.fr \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox