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 ff89080ad19eb..66b181a9bc0eb 100644 --- a/sycl/source/detail/global_handler.cpp +++ b/sycl/source/detail/global_handler.cpp @@ -272,7 +272,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