From bc96b30b506c314d4a7b5d04578a34ceafda32b0 Mon Sep 17 00:00:00 2001 From: Sergey Semenov Date: Mon, 18 Aug 2025 13:49:24 +0200 Subject: [PATCH] [SYCL][NFC] Fix Coverity hits (#19807) --- sycl/source/detail/device_binary_image.hpp | 2 +- sycl/source/detail/global_handler.cpp | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/sycl/source/detail/device_binary_image.hpp b/sycl/source/detail/device_binary_image.hpp index ee96ccc998d27..ac4fb92d3f9a8 100644 --- a/sycl/source/detail/device_binary_image.hpp +++ b/sycl/source/detail/device_binary_image.hpp @@ -250,7 +250,7 @@ class RTDeviceBinaryImage { protected: sycl_device_binary get() const { return Bin; } - sycl_device_binary Bin; + sycl_device_binary Bin = nullptr; ur::DeviceBinaryType Format = SYCL_DEVICE_BINARY_TYPE_NONE; RTDeviceBinaryImage::PropertyRange SpecConstIDMap; diff --git a/sycl/source/detail/global_handler.cpp b/sycl/source/detail/global_handler.cpp index 8392aeed3a230..1dcbc0c8e3fb3 100644 --- a/sycl/source/detail/global_handler.cpp +++ b/sycl/source/detail/global_handler.cpp @@ -280,7 +280,9 @@ void GlobalHandler::releaseDefaultContexts() { // For Linux, early shutdown is here, and late shutdown is called from // a low priority destructor. struct StaticVarShutdownHandler { - + StaticVarShutdownHandler(const StaticVarShutdownHandler &) = delete; + StaticVarShutdownHandler & + operator=(const StaticVarShutdownHandler &) = delete; ~StaticVarShutdownHandler() { try { #ifdef _WIN32