Skip to content

Commit 090d764

Browse files
authored
[SYCL] Fix more unused variables warnings (#3352)
1 parent a58d869 commit 090d764

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

sycl/plugins/opencl/pi_opencl.cpp

+1
Original file line numberDiff line numberDiff line change
@@ -540,6 +540,7 @@ pi_result piextContextCreateWithNativeHandle(pi_native_handle nativeHandle,
540540
pi_context *piContext) {
541541
(void)num_devices;
542542
(void)devices;
543+
(void)ownNativeHandle;
543544
assert(piContext != nullptr);
544545
assert(ownNativeHandle == false);
545546
*piContext = reinterpret_cast<pi_context>(nativeHandle);

sycl/source/detail/kernel_bundle_impl.hpp

+1
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,7 @@ class kernel_bundle_impl {
9999
}
100100

101101
kernel get_kernel(const kernel_id &KernelID) const {
102+
(void)KernelID;
102103
throw sycl::runtime_error("Not implemented", PI_INVALID_OPERATION);
103104
}
104105

0 commit comments

Comments
 (0)