This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
gas warning fixes 2
- From: Alan Modra <amodra at bigpond dot net dot au>
- To: binutils at sources dot redhat dot com
- Date: Fri, 13 Dec 2002 08:22:14 +1030
- Subject: gas warning fixes 2
* config/tc-sparc.c (s_register): Only declare #ifdef OBJ_ELF.
(md_apply_fix3 <segment>): Add ATTRIBUTE_UNUSED.
(tc_gen_reloc <section>): Likewise.
Index: gas/config/tc-sparc.c
===================================================================
RCS file: /cvs/src/src/gas/config/tc-sparc.c,v
retrieving revision 1.43
diff -u -p -r1.43 tc-sparc.c
--- gas/config/tc-sparc.c 5 Sep 2002 00:01:18 -0000 1.43
+++ gas/config/tc-sparc.c 12 Dec 2002 12:45:03 -0000
@@ -138,7 +138,9 @@ static void s_common PARAMS ((int));
static void s_empty PARAMS ((int));
static void s_uacons PARAMS ((int));
static void s_ncons PARAMS ((int));
+#ifdef OBJ_ELF
static void s_register PARAMS ((int));
+#endif
const pseudo_typeS md_pseudo_table[] =
{
@@ -2891,7 +2893,7 @@ void
md_apply_fix3 (fixP, valP, segment)
fixS *fixP;
valueT *valP;
- segT segment;
+ segT segment ATTRIBUTE_UNUSED;
{
char *buf = fixP->fx_where + fixP->fx_frag->fr_literal;
offsetT val = * (offsetT *) valP;
@@ -3246,7 +3248,7 @@ md_apply_fix3 (fixP, valP, segment)
arelent **
tc_gen_reloc (section, fixp)
- asection *section;
+ asection *section ATTRIBUTE_UNUSED;
fixS *fixp;
{
static arelent *relocs[3];
--
Alan Modra
IBM OzLabs - Linux Technology Centre