Skip to content

Commit

Permalink
[SYCL] Fix maybe-uninitialized warning (#12260)
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

Co-authored-by: sys_ce_bb <sys_ce_bb@intel.com>
  • Loading branch information
jsji and sys-ce-bb authored Dec 29, 2023
1 parent 16e7d32 commit 367166c
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 367166c

Please sign in to comment.