This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
gas warning fixes 9
- From: Alan Modra <amodra at bigpond dot net dot au>
- To: binutils at sources dot redhat dot com
- Date: Fri, 13 Dec 2002 08:51:07 +1030
- Subject: gas warning fixes 9
cgen_parse_address returns a const char *.
gas/ChangeLog
* config/tc-ip2k.c (md_assemble): Warning fix.
Index: gas/config/tc-ip2k.c
===================================================================
RCS file: /cvs/src/src/gas/config/tc-ip2k.c,v
retrieving revision 1.3
diff -u -p -r1.3 tc-ip2k.c
--- gas/config/tc-ip2k.c 5 Sep 2002 00:01:18 -0000 1.3
+++ gas/config/tc-ip2k.c 12 Dec 2002 12:44:43 -0000
@@ -180,14 +180,15 @@ md_assemble (str)
enum cgen_parse_operand_result result_type;
long value;
const char *curpc_plus_2 = ".+2";
+ const char *err;
- errmsg = cgen_parse_address (gas_cgen_cpu_desc, & curpc_plus_2,
- IP2K_OPERAND_ADDR16CJP,
- BFD_RELOC_IP2K_PC_SKIP,
- & result_type, & value);
- if (errmsg)
+ err = cgen_parse_address (gas_cgen_cpu_desc, & curpc_plus_2,
+ IP2K_OPERAND_ADDR16CJP,
+ BFD_RELOC_IP2K_PC_SKIP,
+ & result_type, & value);
+ if (err)
{
- as_bad ("%s", errmsg);
+ as_bad ("%s", err);
return;
}
}
--
Alan Modra
IBM OzLabs - Linux Technology Centre