RFR: 8346059: [ASAN] awt_LoadLibrary.c reported compile warning ignoring return value of function by clang17
SendaoYan
syan at openjdk.org
Fri Dec 13 07:55:35 UTC 2024
On Thu, 12 Dec 2024 04:32:14 GMT, SendaoYan <syan at openjdk.org> wrote:
> Hi all,
> This PR fix file src/java.desktop/unix/native/libawt/awt/awt_LoadLibrary.c reported compile warning "ignoring return value of function" by clang17, which add check the return value of `realpath` function. Risk is low.
Compile warning of [JDK-8346059](https://bugs.openjdk.org/browse/JDK-8346059) was introduced recently, Compile warnings of [JDK-8346104](https://bugs.openjdk.org/browse/JDK-8346104)/[JDK-8346103](https://bugs.openjdk.org/browse/JDK-8346103) has exists for several years. So I want to deal with [JDK-8346059](https://bugs.openjdk.org/browse/JDK-8346059) separately make other issues can be backported to jdk21u-dev or jdk17u-dev cleanly.
-------------
PR Comment: https://git.openjdk.org/jdk/pull/22701#issuecomment-2540806883
More information about the client-libs-dev
mailing list