Skip to content

Commit 271fdc8

Browse files
committed
Added UNREFERENCED_PARAMETER macro around local RAII objects to appease clang
1 parent 6fa389b commit 271fdc8

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Release/include/pplx/pplxtasks.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3684,6 +3684,7 @@ class task
36843684
auto _LogWorkItemAndInvokeUserLambda(_Func && _func) const -> decltype(_func())
36853685
{
36863686
details::_TaskWorkItemRAIILogger _LogWorkItem(this->_M_pTask->_M_taskEventLogger);
3687+
CASABLANCA_UNREFERENCED_PARAMETER(_LogWorkItem);
36873688
return _func();
36883689
}
36893690

@@ -3794,6 +3795,7 @@ class task
37943795
auto _LogWorkItemAndInvokeUserLambda(_Func && _func, _Arg && _value) const -> decltype(_func(std::forward<_Arg>(_value)))
37953796
{
37963797
details::_TaskWorkItemRAIILogger _LogWorkItem(this->_M_pTask->_M_taskEventLogger);
3798+
CASABLANCA_UNREFERENCED_PARAMETER(_LogWorkItem);
37973799
return _func(std::forward<_Arg>(_value));
37983800
}
37993801

0 commit comments

Comments
 (0)