Skip to content

Commit f8ce16b

Browse files
steffenlarsenagainull
authored andcommitted
[SYCL][NFC] Ignore unused arguments (#8939)
Signed-off-by: Larsen, Steffen <[email protected]>
1 parent 454347b commit f8ce16b

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

sycl/include/sycl/reduction.hpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2791,6 +2791,7 @@ void reduction_parallel_for(handler &CGH, range<Dims> Range,
27912791
template <typename T, typename AllocatorT, typename BinaryOperation>
27922792
auto reduction(buffer<T, 1, AllocatorT> Var, handler &CGH,
27932793
BinaryOperation Combiner, const property_list &PropList = {}) {
2794+
std::ignore = CGH;
27942795
bool InitializeToIdentity =
27952796
PropList.has_property<property::reduction::initialize_to_identity>();
27962797
return detail::make_reduction<BinaryOperation, 0, 1, false>(
@@ -2817,6 +2818,7 @@ auto reduction(T *Var, BinaryOperation Combiner,
28172818
template <typename T, typename AllocatorT, typename BinaryOperation>
28182819
auto reduction(buffer<T, 1, AllocatorT> Var, handler &CGH, const T &Identity,
28192820
BinaryOperation Combiner, const property_list &PropList = {}) {
2821+
std::ignore = CGH;
28202822
bool InitializeToIdentity =
28212823
PropList.has_property<property::reduction::initialize_to_identity>();
28222824
return detail::make_reduction<BinaryOperation, 0, 1, true>(

0 commit comments

Comments
 (0)