This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
[PATCH]: Fix compilation warnings in gas/config/tc-m68hc11.c
- From: Stephane Carrez <stcarrez at nerim dot fr>
- To: binutils at sources dot redhat dot com
- Date: Sun, 01 Dec 2002 13:19:39 +0100
- Subject: [PATCH]: Fix compilation warnings in gas/config/tc-m68hc11.c
Hi!
Committed this to fix compilation warnings in tc-m68hc11.c
Stephane
2002-12-01 Stephane Carrez <stcarrez@nerim.fr>
* config/tc-m68hc11.c (md_begin): Fix qsort warning.
(tc_gen_reloc): Mark section param as not used.
Index: config/tc-m68hc11.c
===================================================================
RCS file: /cvs/src/src/gas/config/tc-m68hc11.c,v
retrieving revision 1.32
diff -u -p -r1.32 tc-m68hc11.c
--- config/tc-m68hc11.c 1 Dec 2002 11:02:10 -0000 1.32
+++ config/tc-m68hc11.c 1 Dec 2002 11:17:33 -0000
@@ -638,7 +638,8 @@ md_begin ()
}
}
}
- qsort (opcodes, num_opcodes, sizeof (struct m68hc11_opcode), cmp_opcode);
+ qsort (opcodes, num_opcodes, sizeof (struct m68hc11_opcode),
+ (int (*) PARAMS ((const PTR, const PTR))) cmp_opcode);
opc = (struct m68hc11_opcode_def *)
xmalloc (num_opcodes * sizeof (struct m68hc11_opcode_def));
@@ -2704,7 +2705,7 @@ md_pcrel_from (fixP)
then it is done here. */
arelent *
tc_gen_reloc (section, fixp)
- asection *section;
+ asection *section ATTRIBUTE_UNUSED;
fixS *fixp;
{
arelent *reloc;