Skip to content
Snippets Groups Projects
Commit 9d829437 authored by Cédric Traizet's avatar Cédric Traizet
Browse files

ENH: cast the dummy initializer list to void to silence unused parameter warning

parent 247cd52b
No related branches found
No related tags found
No related merge requests found
......@@ -145,7 +145,9 @@ private:
template <class Tuple, size_t... Is>
void SetInputsImpl(Tuple& t, std::index_sequence<Is...>)
{
std::initializer_list<int>{(this->template SetInput<Is>(std::get<Is>(t)), 0)...};
// Will be easier to write in c++17 with fold expressions
// (this->template SetInput<Is>(std::get<Is>(t)),...);
(void) std::initializer_list<int>{(this->template SetInput<Is>(std::get<Is>(t)), 0)...};
}
template <size_t... Is>
......
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