* config/tc-m68hc11.c (md_begin): Fix qsort warning.

(tc_gen_reloc): Mark section param as not used.
This commit is contained in:
Stephane Carrez 2002-12-01 11:19:31 +00:00
parent c9e03e8be9
commit 1910266d61
2 changed files with 8 additions and 2 deletions

View File

@ -1,3 +1,8 @@
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.
2002-12-01 Stephane Carrez <stcarrez@nerim.fr>
Fix Bug savannah/1825:

View File

@ -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;