8375367: vmTestbase tests reported variable uninitialized by clang23

Reviewed-by: sspitsyn, amenkov, lmesnik
This commit is contained in:
SendaoYan 2026-01-16 03:19:28 +00:00
parent 9876875e37
commit e4474ad8ae
2 changed files with 4 additions and 4 deletions

View File

@ -1,5 +1,5 @@
/*
* Copyright (c) 2004, 2024, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2004, 2026, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
@ -113,7 +113,7 @@ static int prepare(JNIEnv* jni) {
/** Agent algorithm. */
static void JNICALL
agentProc(jvmtiEnv* jvmti, JNIEnv* jni, void* arg) {
jint dummy;
jint dummy = 0;
if (!nsk_jvmti_waitForSync(timeout))
return;

View File

@ -1,5 +1,5 @@
/*
* Copyright (c) 2004, 2024, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2004, 2026, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
@ -113,7 +113,7 @@ static int prepare(JNIEnv* jni) {
/** Agent algorithm. */
static void JNICALL
agentProc(jvmtiEnv* jvmti, JNIEnv* jni, void* arg) {
jint dummy;
jint dummy = 0;
if (!nsk_jvmti_waitForSync(timeout))
return;