This is the mail archive of the binutils@sourceware.org mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[RFA] Fix all compiler warnings on AIX


Hello,

The attached patch fixes all the compilation warnings on AIX
(which have been aborting the build since -Werror was introduced).

2005-10-27  Joel Brobecker  <brobecker@adacore.com>

        Mostly from Eric Botcazou <botcazou@adacore.com>
        * rs6000-core.c: ANSIfy all function definitions.
        Add missing function prototypes.
        (ptr_to_uint): New type.
        (rs6000coff_core_p): Use it as intermediate step in casts.
        (rs6000coff_core_file_matches_executable_p): Likewise.
        * xcoff-target.h (rs6000coff_core_p): Fix prototype.
        (rs6000coff_core_file_matches_executable_p): Likewise.

Fixes the build failure. Tested on ppc-aix 5.1 by running the
various testsuites first with a version of binutils were rs6000-core
was built without -Werror, and then after having rebuilt it normally
but with the patch applied.

Adding the prototypes is the part I added to Eric's patch. I wasn't
exactly sure where to add them, so I just added them around the begining
of the same file.

OK to apply?

Thanks,
-- 
Joel

Attachment: bfd_aix-2.diff
Description: Text document


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]