Skip to content

Commit fac271b

Browse files
include/oneapi/dpl/pstl/algorithm_impl.h - fix compile error: unused wariable
1 parent 95c3fc7 commit fac271b

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

include/oneapi/dpl/pstl/algorithm_impl.h

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3680,15 +3680,20 @@ __parallel_set_op(__parallel_tag<_IsVector> __tag, _ExecutionPolicy&& __exec, _R
36803680
__set_union_op, __comp, __proj1, __proj2, __buf_raw_data_begin,
36813681
__mask_bufs};
36823682

3683-
auto __apex_pred = [ [[maybe_unused]] __n_out, &__res_reachedOutPos, &__scan_pred ](const _SetRange& __total)
3683+
auto __apex_pred = [__n_out, &__res_reachedOutPos, &__scan_pred](const _SetRange& __total)
36843684
{
36853685
//final scan
36863686
__scan_pred(/* 0 */ _DifferenceType1{}, /* 0 */ _DifferenceType1{}, __total);
36873687

36883688
if constexpr (!__Bounded)
3689+
{
3690+
(void)__n_out;
36893691
__res_reachedOutPos = __total.__data[0].__pos + __total.__data[0].__len;
3692+
}
36903693
else
3694+
{
36913695
__res_reachedOutPos = std::min(__n_out, __total.__data[0].__pos + __total.__data[0].__len);
3696+
}
36923697
};
36933698

36943699
__par_backend::__parallel_strict_scan(__backend_tag{}, __exec, __n1, _SetRange(), __reduce_pred, __combine_pred,

0 commit comments

Comments
 (0)