On Fri, 2 Feb 2024 15:27:39 GMT, Magnus Ihse Bursie <i...@openjdk.org> wrote:
> While we do not have automatic testing of using clang instead of gcc on > linux, we try to keep it in working condition. This is still the case for the > JDK itself, but there is a native test which fails to compile with clang. > This should be fixed. The errors reported are: /localhome/git/jdk-BAR/closed/test/jdk/java/awt/sizecalc/SafeAllocationTest/libSafeAllocationTest.c:75:13: error: format specifies type 'unsigned long long' but the argument has type 'int64_t' (aka 'long') [-Werror,-Wformat] m, n, allocated); ^ /localhome/git/jdk-BAR/closed/test/jdk/java/awt/sizecalc/SafeAllocationTest/libSafeAllocationTest.c:75:16: error: format specifies type 'unsigned long long' but the argument has type 'int64_t' (aka 'long') [-Werror,-Wformat] m, n, allocated); There seem to be some underlying type confusion. A (probably better) alternative to hiding the warning is to actually fix the problem. I'll leave that question up for the client team to decide if they want to address this. ------------- PR Comment: https://git.openjdk.org/jdk/pull/17688#issuecomment-1924119343