Skip to content

Commit 2e72ad5

Browse files
Fix check-sycl (may be used uninitialized warning)
1 parent 5e40ddf commit 2e72ad5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sycl/include/sycl/ext/oneapi/experimental/work_group_memory.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ class __SYCL_SPECIAL_CLASS __SYCL_TYPE(work_group_memory) work_group_memory
7777
void __init(decoratedPtr ptr) { this->ptr = ptr; }
7878
#endif
7979
private:
80-
decoratedPtr ptr;
80+
decoratedPtr ptr = nullptr;
8181
};
8282
} // namespace ext::oneapi::experimental
8383
} // namespace _V1

0 commit comments

Comments
 (0)