Skip to content

Commit 51f22c4

Browse files
authored
[SYCL][NFC] Code cleanup revealed by self-build (#3230)
1 parent 3d2225a commit 51f22c4

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

sycl/plugins/level_zero/pi_level_zero.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4797,6 +4797,8 @@ enqueueMemImageCommandHelper(pi_command_type CommandType, pi_queue Queue,
47974797

47984798
// TODO: Level Zero does not support row_pitch/slice_pitch for images yet.
47994799
// Check that SYCL RT did not want pitch larger than default.
4800+
(void)RowPitch;
4801+
(void)SlicePitch;
48004802
#ifndef NDEBUG
48014803
PI_ASSERT(SrcMem->isImage(), PI_INVALID_MEM_OBJECT);
48024804

sycl/source/detail/memory_manager.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,8 @@ void *MemoryManager::allocateInteropMemObject(
112112
ContextImplPtr TargetContext, void *UserPtr,
113113
const EventImplPtr &InteropEvent, const ContextImplPtr &InteropContext,
114114
const sycl::property_list &, RT::PiEvent &OutEventToWait) {
115+
(void)TargetContext;
116+
(void)InteropContext;
115117
// If memory object is created with interop c'tor return cl_mem as is.
116118
assert(TargetContext == InteropContext && "Expected matching contexts");
117119
OutEventToWait = InteropEvent->getHandleRef();

0 commit comments

Comments
 (0)