RFR: 8375370: XRBackendNative.c reported variable uninitialized by clang23 [v2]
SendaoYan
syan at openjdk.org
Fri Jan 16 03:15:19 UTC 2026
> 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.
SendaoYan has updated the pull request incrementally with one additional commit since the last revision:
Initial all the fields of pict_attr to zero
-------------
Changes:
- all: https://git.openjdk.org/jdk/pull/29248/files
- new: https://git.openjdk.org/jdk/pull/29248/files/1380681c..f6949885
Webrevs:
- full: https://webrevs.openjdk.org/?repo=jdk&pr=29248&range=01
- incr: https://webrevs.openjdk.org/?repo=jdk&pr=29248&range=00-01
Stats: 2 lines in 1 file changed: 0 ins; 1 del; 1 mod
Patch: https://git.openjdk.org/jdk/pull/29248.diff
Fetch: git fetch https://git.openjdk.org/jdk.git pull/29248/head:pull/29248
PR: https://git.openjdk.org/jdk/pull/29248
More information about the client-libs-dev
mailing list