Skip to content

Commit c0e36bd

Browse files
authored
[SYCL] Fix unused value warning (#6276)
1 parent 2340b33 commit c0e36bd

File tree

1 file changed

+2
-0
lines changed
  • sycl/include/CL/sycl/detail

1 file changed

+2
-0
lines changed

sycl/include/CL/sycl/detail/pi.hpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -424,6 +424,8 @@ template <class To, class From> inline To cast(From value) {
424424
}
425425

426426
template <class To, class From> inline To cast(std::vector<From> value) {
427+
// Silence the unused parameter warning.
428+
(void)value;
427429
RT::assertion(false,
428430
"Compatibility specialization, not expected to be used. "
429431
"The only allowed cast using a vector of From values is "

0 commit comments

Comments
 (0)