From b6abf133257e09b19e1d5353b66e1ffaaefb84be Mon Sep 17 00:00:00 2001 From: "Dittakavi, Satyanvesh" Date: Mon, 21 Jul 2025 13:57:28 +0530 Subject: [PATCH] SWDEV-543370 - Initialize variable to fix compiler errors (#431) [ROCm/hip-tests commit: b1b496831800a8472519c532d1350746ba5f5b22] --- projects/hip-tests/catch/multiproc/hipNoGpuTsts.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/projects/hip-tests/catch/multiproc/hipNoGpuTsts.cc b/projects/hip-tests/catch/multiproc/hipNoGpuTsts.cc index bf8650c47e..e54d10b03e 100644 --- a/projects/hip-tests/catch/multiproc/hipNoGpuTsts.cc +++ b/projects/hip-tests/catch/multiproc/hipNoGpuTsts.cc @@ -372,7 +372,7 @@ static bool NoGpuTst_hipPointerGetAttributes() { bool passed = false; hipError_t err; hipPointerAttribute_t attributes = {}; - char* A_d; + char* A_d = nullptr; err = hipPointerGetAttributes(&attributes, A_d); if (err == hipErrorNoDevice) { passed = true;