diff options
author | Alan Modra <amodra@gmail.com> | 2021-03-04 08:46:22 +1030 |
---|---|---|
committer | Alan Modra <amodra@gmail.com> | 2021-03-04 08:53:35 +1030 |
commit | 0b7733b665333107502223bde3f7823cdc09c947 (patch) | |
tree | 0293476bfe3c221c8099465a220516df3f35e319 /bfd/rs6000-core.c | |
parent | 1bfa81acbf33cd1157f3b34727136d963505a3d2 (diff) | |
download | fsf-binutils-gdb-0b7733b665333107502223bde3f7823cdc09c947.zip fsf-binutils-gdb-0b7733b665333107502223bde3f7823cdc09c947.tar.gz fsf-binutils-gdb-0b7733b665333107502223bde3f7823cdc09c947.tar.bz2 |
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.
Diffstat (limited to 'bfd/rs6000-core.c')
-rw-r--r-- | bfd/rs6000-core.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bfd/rs6000-core.c b/bfd/rs6000-core.c index 9fed1ff..1c19060 100644 --- a/bfd/rs6000-core.c +++ b/bfd/rs6000-core.c @@ -277,7 +277,7 @@ typedef union /* Define prototypes for certain functions, to avoid a compiler warning saying that they are missing. */ -const bfd_cleanup rs6000coff_core_p (bfd *abfd); +bfd_cleanup rs6000coff_core_p (bfd *abfd); bfd_boolean rs6000coff_core_file_matches_executable_p (bfd *core_bfd, bfd *exec_bfd); char * rs6000coff_core_file_failing_command (bfd *abfd); |