mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Avoid "unneccesary parentheses in declaration of" warning with keeping a temporary variable.
This commit is contained in:
parent
9e26f5fa0a
commit
1d3a37faff
@ -606,7 +606,9 @@ bool Parser::isValidNumberLiteral(string const& _literal)
|
|||||||
{
|
{
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
u256(_literal);
|
// Try to convert _literal to u256.
|
||||||
|
auto tmp = u256(_literal);
|
||||||
|
(void) tmp;
|
||||||
}
|
}
|
||||||
catch (...)
|
catch (...)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user