Skip to content

Commit 4797d65

Browse files
[SYCL][NFC] Fix build failure due to unused variables (#15656)
fixes post commit build for #15253 Signed-off-by: Tikhomirova, Kseniya <kseniya.tikhomirova@intel.com>
1 parent c99766a commit 4797d65

File tree

5 files changed

+5
-5
lines changed

5 files changed

+5
-5
lines changed

sycl/source/accessor.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,7 @@ SampledImageAccessorBaseHost::SampledImageAccessorBaseHost(
183183
image_channel_order ChannelOrder, image_sampler Sampler,
184184
const property_list &PropertyList) {
185185
{
186-
auto NoAllowedPropertiesCheck = [](int PropertyKind) { return false; };
186+
auto NoAllowedPropertiesCheck = [](int) { return false; };
187187
detail::PropertyValidator::checkPropsAndThrow(
188188
PropertyList, NoAllowedPropertiesCheck, NoAllowedPropertiesCheck);
189189
}

sycl/source/detail/context_impl.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -540,7 +540,7 @@ context_impl::getProgramForHostPipe(const device &Device,
540540
}
541541

542542
void context_impl::verifyProps(const property_list &Props) const {
543-
auto NoAllowedPropertiesCheck = [](int PropertyKind) { return false; };
543+
auto NoAllowedPropertiesCheck = [](int) { return false; };
544544
detail::PropertyValidator::checkPropsAndThrow(Props, NoAllowedPropertiesCheck,
545545
NoAllowedPropertiesCheck);
546546
}

sycl/source/detail/sampler_impl.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@ sampler_impl::get_coordinate_normalization_mode() const {
158158
}
159159

160160
void sampler_impl::verifyProps(const property_list &Props) const {
161-
auto NoAllowedPropertiesCheck = [](int PropertyKind) { return false; };
161+
auto NoAllowedPropertiesCheck = [](int) { return false; };
162162
detail::PropertyValidator::checkPropsAndThrow(Props, NoAllowedPropertiesCheck,
163163
NoAllowedPropertiesCheck);
164164
}

sycl/source/detail/stream_impl.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ void stream_impl::generateFlushCommand(handler &cgh) {
9999
}
100100

101101
void stream_impl::verifyProps(const property_list &Props) const {
102-
auto NoAllowedPropertiesCheck = [](int PropertyKind) { return false; };
102+
auto NoAllowedPropertiesCheck = [](int) { return false; };
103103
detail::PropertyValidator::checkPropsAndThrow(Props, NoAllowedPropertiesCheck,
104104
NoAllowedPropertiesCheck);
105105
}

sycl/source/detail/usm/usm_impl.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -650,7 +650,7 @@ void release_from_device_copy(const void *Ptr, const queue &Queue) {
650650
} // namespace ext::oneapi::experimental
651651

652652
__SYCL_EXPORT void verifyUSMAllocatorProperties(const property_list &PropList) {
653-
auto NoAllowedPropertiesCheck = [](int PropertyKind) { return false; };
653+
auto NoAllowedPropertiesCheck = [](int) { return false; };
654654
detail::PropertyValidator::checkPropsAndThrow(
655655
PropList, NoAllowedPropertiesCheck, NoAllowedPropertiesCheck);
656656
}

0 commit comments

Comments
 (0)