Skip to content

Commit

Permalink
[SYCL] Fix maybe-uninitialized warning
Browse files Browse the repository at this point in the history
sycl/source/detail/event_impl.cpp:223:24: error: ‘IId’ may be used
uninitialized in this function [-Werror=maybe-uninitialized
  • Loading branch information
sys-ce-bb authored and jsji committed Dec 28, 2023
1 parent 0bc7e59 commit 346fbe7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sycl/source/detail/event_impl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -238,7 +238,7 @@ void event_impl::wait(std::shared_ptr<sycl::detail::event_impl> Self) {

#ifdef XPTI_ENABLE_INSTRUMENTATION
void *TelemetryEvent = nullptr;
uint64_t IId;
uint64_t IId = 0;
std::string Name;
int32_t StreamID = xptiRegisterStream(SYCL_STREAM_NAME);
TelemetryEvent = instrumentationProlog(Name, StreamID, IId);
Expand Down

0 comments on commit 346fbe7

Please sign in to comment.