mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Merge pull request #6725 from AndreyBronin/develop
GCC 9.1 build fix. error: redundant move in return statement
This commit is contained in:
@@ -437,7 +437,7 @@ boost::variant<OptimiserSettings, Json::Value> parseOptimizerSettings(Json::Valu
|
||||
return *error;
|
||||
}
|
||||
}
|
||||
return std::move(settings);
|
||||
return { std::move(settings) };
|
||||
}
|
||||
|
||||
}
|
||||
@@ -663,7 +663,7 @@ boost::variant<StandardCompiler::InputsAndSettings, Json::Value> StandardCompile
|
||||
|
||||
ret.outputSelection = std::move(outputSelection);
|
||||
|
||||
return std::move(ret);
|
||||
return { std::move(ret) };
|
||||
}
|
||||
|
||||
Json::Value StandardCompiler::compileSolidity(StandardCompiler::InputsAndSettings _inputsAndSettings)
|
||||
|
||||
Reference in New Issue
Block a user