Skip to content

Commit 367166c

Browse files
jsjisys-ce-bb
andauthored
[SYCL] Fix maybe-uninitialized warning (intel#12260)
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 <[email protected]>
1 parent 16e7d32 commit 367166c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sycl/source/detail/event_impl.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -238,7 +238,7 @@ void event_impl::wait(std::shared_ptr<sycl::detail::event_impl> Self) {
238238

239239
#ifdef XPTI_ENABLE_INSTRUMENTATION
240240
void *TelemetryEvent = nullptr;
241-
uint64_t IId;
241+
uint64_t IId = 0;
242242
std::string Name;
243243
int32_t StreamID = xptiRegisterStream(SYCL_STREAM_NAME);
244244
TelemetryEvent = instrumentationProlog(Name, StreamID, IId);

0 commit comments

Comments
 (0)