RFR: 8348286: [AIX] clang 17 introduces new warning Wtentative-Definitions which produces Build errors

Erik Joelsson erikj at openjdk.org
Wed Jan 22 20:47:46 UTC 2025


On Wed, 22 Jan 2025 20:33:37 GMT, Martin Doerr <mdoerr at openjdk.org> wrote:

> I have only found the option in https://www.ibm.com/docs/en/openxl-c-and-cpp-aix/17.1.2?topic=options-wtentative-definitions which says "Note: The option is available starting from IBM® Open XL C/C++ for AIX® 17.1.2.8.". I guess we want to ignore such warnings for all clang 17 version on AIX?

If the warning doesn't exist in earlier versions, then it's fine to just always add the option, without checking the compiler version. We do that for lots of warnings. There is a flag to ignore unknown warning options that we use for this very purpose.

-------------

PR Comment: https://git.openjdk.org/jdk/pull/23236#issuecomment-2608227478


More information about the build-dev mailing list