From: Stephane Carrez Date: Sun, 1 Dec 2002 11:19:31 +0000 (+0000) Subject: * config/tc-m68hc11.c (md_begin): Fix qsort warning. X-Git-Tag: gdb_6_0-branchpoint~565 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=1910266d6121a4befbd6fc9d5773f478e8b8fd31;p=thirdparty%2Fbinutils-gdb.git * config/tc-m68hc11.c (md_begin): Fix qsort warning. (tc_gen_reloc): Mark section param as not used. --- diff --git a/gas/ChangeLog b/gas/ChangeLog index 76b52d5d4ff..820a990f02b 100644 --- a/gas/ChangeLog +++ b/gas/ChangeLog @@ -1,3 +1,8 @@ +2002-12-01 Stephane Carrez + + * config/tc-m68hc11.c (md_begin): Fix qsort warning. + (tc_gen_reloc): Mark section param as not used. + 2002-12-01 Stephane Carrez Fix Bug savannah/1825: diff --git a/gas/config/tc-m68hc11.c b/gas/config/tc-m68hc11.c index 2586902ff13..f12655ec3dd 100644 --- a/gas/config/tc-m68hc11.c +++ b/gas/config/tc-m68hc11.c @@ -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;