From d34df53a64e8a3c053ed7a3cf847a21000ff1818 Mon Sep 17 00:00:00 2001 From: Vlad Romanov Date: Fri, 12 Mar 2021 12:02:02 +0300 Subject: [PATCH] [SYCL] Fix more unused variables warnings --- sycl/plugins/opencl/pi_opencl.cpp | 1 + sycl/source/detail/kernel_bundle_impl.hpp | 1 + 2 files changed, 2 insertions(+) diff --git a/sycl/plugins/opencl/pi_opencl.cpp b/sycl/plugins/opencl/pi_opencl.cpp index a77924a21108..f6dd91123609 100644 --- a/sycl/plugins/opencl/pi_opencl.cpp +++ b/sycl/plugins/opencl/pi_opencl.cpp @@ -540,6 +540,7 @@ pi_result piextContextCreateWithNativeHandle(pi_native_handle nativeHandle, pi_context *piContext) { (void)num_devices; (void)devices; + (void)ownNativeHandle; assert(piContext != nullptr); assert(ownNativeHandle == false); *piContext = reinterpret_cast(nativeHandle); diff --git a/sycl/source/detail/kernel_bundle_impl.hpp b/sycl/source/detail/kernel_bundle_impl.hpp index d6168acb09f2..34e29ef9ccf9 100644 --- a/sycl/source/detail/kernel_bundle_impl.hpp +++ b/sycl/source/detail/kernel_bundle_impl.hpp @@ -99,6 +99,7 @@ class kernel_bundle_impl { } kernel get_kernel(const kernel_id &KernelID) const { + (void)KernelID; throw sycl::runtime_error("Not implemented", PI_INVALID_OPERATION); }