Skip to content

[SYCL][NFC] Fix Coverity hits #19807

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: sycl
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion sycl/source/detail/device_binary_image.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
4 changes: 3 additions & 1 deletion sycl/source/detail/global_handler.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Loading