-
Notifications
You must be signed in to change notification settings - Fork 796
[NFC][SYCL][XPTI] Fix minor coverity hits #19952
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
Changes from 1 commit
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -27,7 +27,10 @@ class DeviceGlobalMap { | |
| DeviceGlobalMap(bool OwnerControlledCleanup) | ||
| : MOwnerControlledCleanup{OwnerControlledCleanup} {} | ||
|
|
||
| ~DeviceGlobalMap() { | ||
| DeviceGlobalMap(const DeviceGlobalMap &) = default; | ||
| DeviceGlobalMap &operator=(const DeviceGlobalMap &) = default; | ||
|
|
||
| ~DeviceGlobalMap() noexcept(false) { | ||
|
||
| if (!MOwnerControlledCleanup) | ||
| for (auto &DeviceGlobalIt : MDeviceGlobals) | ||
| DeviceGlobalIt.second->cleanup(); | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -1731,6 +1731,7 @@ class tracepoint_t { | |
| m_default_event_type = (uint16_t)xpti::trace_event_type_t::algorithm; | ||
| m_default_activity_type = xpti::trace_activity_type_t::active; | ||
| m_default_name = "Message"; // Likely never used | ||
| m_instID = 0; | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Coverity was complaining about this field be left uninitialized in the constructor. |
||
| } | ||
| /// The payload data structure that is prepared from code_location(), | ||
| /// caller_callee string or kernel name/codepointer based on the opt-in flag. | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Rule of three