Skip to content
Snippets Groups Projects
Commit 91907df2 authored by Julien Michel's avatar Julien Michel
Browse files

WRG: Fix variable set but not used warning

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