Skip to content

Fix build failure due to unused variables #15656

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Oct 10, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion sycl/source/accessor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down
2 changes: 1 addition & 1 deletion sycl/source/detail/context_impl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down
2 changes: 1 addition & 1 deletion sycl/source/detail/sampler_impl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down
2 changes: 1 addition & 1 deletion sycl/source/detail/stream_impl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down
2 changes: 1 addition & 1 deletion sycl/source/detail/usm/usm_impl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down
Loading