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

Joachim Kern jkern at openjdk.org
Thu Jan 23 09:29:50 UTC 2025


On Thu, 23 Jan 2025 00:22:08 GMT, Magnus Ihse Bursie <ihse at openjdk.org> wrote:

> Try this instead:
> 
> ```
> diff --git a/make/autoconf/flags-cflags.m4 b/make/autoconf/flags-cflags.m4
> index 729e508cc26..04831c07d97 100644
> --- a/make/autoconf/flags-cflags.m4
> +++ b/make/autoconf/flags-cflags.m4
> @@ -263,7 +263,7 @@ AC_DEFUN([FLAGS_SETUP_WARNINGS],
>  
>        # These warnings will never be turned on, since they generate too many
>        # false positives.
> -      DISABLED_WARNINGS="unknown-warning-option unused-parameter"
> +      DISABLED_WARNINGS="unknown-warning-option unused-parameter tentative-definitions"
>        ;;
>    esac
>    AC_SUBST(DISABLE_WARNING_PREFIX)
> ```

Yes, this works too. Better solution than mine if we do it unconditionally.

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

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


More information about the build-dev mailing list