RFR: 8375370: XRBackendNative.c reported variable uninitialized by clang23 [v2]
Phil Race
prr at openjdk.org
Fri Jan 16 17:52:42 UTC 2026
On Fri, 16 Jan 2026 03:15:19 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.
>
> SendaoYan has updated the pull request incrementally with one additional commit since the last revision:
>
> Initial all the fields of pict_attr to zero
Marked as reviewed by prr (Reviewer).
-------------
PR Review: https://git.openjdk.org/jdk/pull/29248#pullrequestreview-3672030718
More information about the client-libs-dev
mailing list