Commit 91907df2 authored by Julien Michel's avatar Julien Michel

WRG: Fix variable set but not used warning

parent bf55de26
......@@ -149,6 +149,7 @@ template <typename TOut,typename TIn> struct TestOperatorVoidReturn
// avoid C++ parse
// ambiguity
auto res = filter->template GetVariadicInput<0>();
// Test named input version
......@@ -160,7 +161,10 @@ template <typename TOut,typename TIn> struct TestOperatorVoidReturn
res = filter1->template GetVariadicNamedInput<tag>();
res = filter1->GetVariadicNamedInput(tag{});
// Hack to silent -Wunused-but-set-variable
// Test with void return
auto functorWithVoidReturn = TestOperatorVoidReturn<TOut,TIn>{};
auto filterWithVoidReturn = NewFunctorFilter(functorWithVoidReturn);
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment