binutils fails to compile on AIX due to mismatched declaration
authorAlan Modra <amodra@gmail.com>
Wed, 3 Mar 2021 22:16:22 +0000 (08:46 +1030)
committerAlan Modra <amodra@gmail.com>
Wed, 3 Mar 2021 22:23:35 +0000 (08:53 +1030)
commit0b7733b665333107502223bde3f7823cdc09c947
tree0293476bfe3c221c8099465a220516df3f35e319
parent1bfa81acbf33cd1157f3b34727136d963505a3d2
binutils fails to compile on AIX due to mismatched declaration

rs6000-core.c:280:19: warning: type qualifiers ignored on function return type [-Wignored-qualifiers]
 const bfd_cleanup rs6000coff_core_p (bfd *abfd);
                   ^~~~~~~~~~~~~~~~~
rs6000-core.c:336:1: error: conflicting types for 'rs6000coff_core_p'
 rs6000coff_core_p (bfd *abfd)
 ^~~~~~~~~~~~~~~~~
rs6000-core.c:280:19: note: previous declaration of 'rs6000coff_core_p' was here
 const bfd_cleanup rs6000coff_core_p (bfd *abfd);
                   ^~~~~~~~~~~~~~~~~

* rs6000-core.c (rs6000coff_core_p): Correct prototype.
bfd/ChangeLog
bfd/rs6000-core.c