Skip to content

Commit 9b91d42

Browse files
[SYCL][NFC] Fix Coverity hits (#19882)
This is a cherry-pick of #19807 Patch-by: Sergey Semenov <[email protected]>
1 parent 52f0981 commit 9b91d42

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

sycl/source/detail/device_binary_image.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -250,7 +250,7 @@ class RTDeviceBinaryImage {
250250
protected:
251251
sycl_device_binary get() const { return Bin; }
252252

253-
sycl_device_binary Bin;
253+
sycl_device_binary Bin = nullptr;
254254

255255
ur::DeviceBinaryType Format = SYCL_DEVICE_BINARY_TYPE_NONE;
256256
RTDeviceBinaryImage::PropertyRange SpecConstIDMap;

sycl/source/detail/global_handler.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -280,7 +280,9 @@ void GlobalHandler::releaseDefaultContexts() {
280280
// For Linux, early shutdown is here, and late shutdown is called from
281281
// a low priority destructor.
282282
struct StaticVarShutdownHandler {
283-
283+
StaticVarShutdownHandler(const StaticVarShutdownHandler &) = delete;
284+
StaticVarShutdownHandler &
285+
operator=(const StaticVarShutdownHandler &) = delete;
284286
~StaticVarShutdownHandler() {
285287
try {
286288
#ifdef _WIN32

0 commit comments

Comments
 (0)