From d077c1abaa5121c867fe488a4fec7493bb2a2e11 Mon Sep 17 00:00:00 2001 From: foreman Date: Fri, 9 Dec 2016 14:37:13 -0500 Subject: [PATCH] P4 to Git Change 1351742 by gandryey@gera-w8 on 2016/12/09 14:31:14 SWDEV-79445 - OCL generic changes and code clean-up - Fix a warnign in LC build Affected files ... ... //depot/stg/opencl/drivers/opencl/runtime/device/pal/palkernel.cpp#29 edit ... //depot/stg/opencl/drivers/opencl/runtime/device/rocm/rocvirtual.cpp#23 edit --- rocclr/runtime/device/pal/palkernel.cpp | 2 +- rocclr/runtime/device/rocm/rocvirtual.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/rocclr/runtime/device/pal/palkernel.cpp b/rocclr/runtime/device/pal/palkernel.cpp index 23dbc0fd3d..1e00ea844a 100644 --- a/rocclr/runtime/device/pal/palkernel.cpp +++ b/rocclr/runtime/device/pal/palkernel.cpp @@ -991,7 +991,7 @@ HSAILKernel::loadArguments( // Find all parameters for the current kernel for (auto arg : arguments_) { - const_address paramaddr; + const_address paramaddr = nullptr; if (arg->index_ != uint(-1)) { paramaddr = parameters + signature.at(arg->index_).offset_; } diff --git a/rocclr/runtime/device/rocm/rocvirtual.cpp b/rocclr/runtime/device/rocm/rocvirtual.cpp index 50b5f7c827..88431a36d1 100644 --- a/rocclr/runtime/device/rocm/rocvirtual.cpp +++ b/rocclr/runtime/device/rocm/rocvirtual.cpp @@ -1528,7 +1528,7 @@ VirtualGPU::submitKernelInternal( // Find all parameters for the current kernel for (auto arg : gpuKernel.hsailArgs()) { - const_address srcArgPtr; + const_address srcArgPtr = NULL; if (arg->index_ != uint(-1)) { srcArgPtr = parameters + signature.at(arg->index_).offset_; }