diff --git a/sycl/source/accessor.cpp b/sycl/source/accessor.cpp index 0b1fab02fa6bd..418d9b6ea3dcc 100644 --- a/sycl/source/accessor.cpp +++ b/sycl/source/accessor.cpp @@ -183,7 +183,7 @@ SampledImageAccessorBaseHost::SampledImageAccessorBaseHost( image_channel_order ChannelOrder, image_sampler Sampler, const property_list &PropertyList) { { - auto NoAllowedPropertiesCheck = [](int PropertyKind) { return false; }; + auto NoAllowedPropertiesCheck = [](int) { return false; }; detail::PropertyValidator::checkPropsAndThrow( PropertyList, NoAllowedPropertiesCheck, NoAllowedPropertiesCheck); } diff --git a/sycl/source/detail/context_impl.cpp b/sycl/source/detail/context_impl.cpp index dda9478f6a2bb..ce5f9f735dee6 100644 --- a/sycl/source/detail/context_impl.cpp +++ b/sycl/source/detail/context_impl.cpp @@ -540,7 +540,7 @@ context_impl::getProgramForHostPipe(const device &Device, } void context_impl::verifyProps(const property_list &Props) const { - auto NoAllowedPropertiesCheck = [](int PropertyKind) { return false; }; + auto NoAllowedPropertiesCheck = [](int) { return false; }; detail::PropertyValidator::checkPropsAndThrow(Props, NoAllowedPropertiesCheck, NoAllowedPropertiesCheck); } diff --git a/sycl/source/detail/sampler_impl.cpp b/sycl/source/detail/sampler_impl.cpp index 0377966582c8a..07582dee0dd31 100644 --- a/sycl/source/detail/sampler_impl.cpp +++ b/sycl/source/detail/sampler_impl.cpp @@ -158,7 +158,7 @@ sampler_impl::get_coordinate_normalization_mode() const { } void sampler_impl::verifyProps(const property_list &Props) const { - auto NoAllowedPropertiesCheck = [](int PropertyKind) { return false; }; + auto NoAllowedPropertiesCheck = [](int) { return false; }; detail::PropertyValidator::checkPropsAndThrow(Props, NoAllowedPropertiesCheck, NoAllowedPropertiesCheck); } diff --git a/sycl/source/detail/stream_impl.cpp b/sycl/source/detail/stream_impl.cpp index 54ae19f82c586..a940c609a9627 100644 --- a/sycl/source/detail/stream_impl.cpp +++ b/sycl/source/detail/stream_impl.cpp @@ -99,7 +99,7 @@ void stream_impl::generateFlushCommand(handler &cgh) { } void stream_impl::verifyProps(const property_list &Props) const { - auto NoAllowedPropertiesCheck = [](int PropertyKind) { return false; }; + auto NoAllowedPropertiesCheck = [](int) { return false; }; detail::PropertyValidator::checkPropsAndThrow(Props, NoAllowedPropertiesCheck, NoAllowedPropertiesCheck); } diff --git a/sycl/source/detail/usm/usm_impl.cpp b/sycl/source/detail/usm/usm_impl.cpp index 3a8e839fd0775..08e08000e9ae2 100644 --- a/sycl/source/detail/usm/usm_impl.cpp +++ b/sycl/source/detail/usm/usm_impl.cpp @@ -650,7 +650,7 @@ void release_from_device_copy(const void *Ptr, const queue &Queue) { } // namespace ext::oneapi::experimental __SYCL_EXPORT void verifyUSMAllocatorProperties(const property_list &PropList) { - auto NoAllowedPropertiesCheck = [](int PropertyKind) { return false; }; + auto NoAllowedPropertiesCheck = [](int) { return false; }; detail::PropertyValidator::checkPropsAndThrow( PropList, NoAllowedPropertiesCheck, NoAllowedPropertiesCheck); }