Integrated: 8375370: XRBackendNative.c reported variable uninitialized by clang23

SendaoYan syan at openjdk.org
Sat Jan 17 04:33:35 UTC 2026


On Thu, 15 Jan 2026 07:36:05 GMT, SendaoYan <syan at openjdk.org> wrote:

> Hi all,
> 
> The local variable `pict_attr` in function `JNIEXPORT jint JNICALL Java_sun_java2d_xr_XRBackendNative_createPictureNative  (JNIEnv *env, jclass cls, jint drawable, jlong formatPtr)` reported variable uninitialized by clang23. This PR initial all the fields of`pict_attr` to zero which will avoid compiler warning by clang23.

This pull request has now been integrated.

Changeset: 0dd5b591
Author:    SendaoYan <syan at openjdk.org>
URL:       https://git.openjdk.org/jdk/commit/0dd5b59194f32f54c2ec6572833f45e1402515ba
Stats:     2 lines in 1 file changed: 0 ins; 0 del; 2 mod

8375370: XRBackendNative.c reported variable uninitialized by clang23

Reviewed-by: prr

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

PR: https://git.openjdk.org/jdk/pull/29248


More information about the client-libs-dev mailing list