Skip to content

[SYCL] Fix unused value warning #6276

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
Jun 9, 2022

Conversation

jchlanda
Copy link
Contributor

@jchlanda jchlanda commented Jun 9, 2022

No description provided.

@jchlanda jchlanda requested a review from a team as a code owner June 9, 2022 08:31
@jchlanda jchlanda requested a review from againull June 9, 2022 08:31
@steffenlarsen steffenlarsen merged commit c0e36bd into intel:sycl Jun 9, 2022
@@ -424,6 +424,8 @@ template <class To, class From> inline To cast(From value) {
}

template <class To, class From> inline To cast(std::vector<From> value) {
// Silence the unused parameter warning.
(void)value;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

std::ignore = value;

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants