mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
fix warning in GCC 9.1: redundant move in return statement
This commit is contained in:
@@ -106,7 +106,7 @@ void SSATransform::operator()(Block& _block)
|
||||
});
|
||||
}
|
||||
boost::get<VariableDeclaration>(statements.front()).variables = std::move(newVariables);
|
||||
return std::move(statements);
|
||||
return { std::move(statements) };
|
||||
}
|
||||
else if (_s.type() == typeid(Assignment))
|
||||
{
|
||||
@@ -133,7 +133,7 @@ void SSATransform::operator()(Block& _block)
|
||||
});
|
||||
}
|
||||
boost::get<VariableDeclaration>(statements.front()).variables = std::move(newVariables);
|
||||
return std::move(statements);
|
||||
return { std::move(statements) };
|
||||
}
|
||||
else
|
||||
visit(_s);
|
||||
|
||||
Reference in New Issue
Block a user