diff --git a/sycl/plugins/opencl/pi_opencl.cpp b/sycl/plugins/opencl/pi_opencl.cpp index a77924a211081..f6dd91123609d 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 d6168acb09f26..34e29ef9ccf9e 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); }