aboutsummaryrefslogtreecommitdiffstats
path: root/libsolidity
diff options
context:
space:
mode:
authorJulius Huelsmann <huelsmann@campus.tu-berlin.de>2018-05-17 18:19:29 +0800
committerAlex Beregszaszi <alex@rtfs.hu>2018-05-17 20:48:15 +0800
commit1d3a37faff9a82a5269c3414a2d6fe868593afb1 (patch)
tree72cf7ac1ee2b825e8e387b5052dbefb27606ab2d /libsolidity
parent9e26f5fa0a956543f14dd84eb9d461ca75cce95e (diff)
downloaddexon-solidity-1d3a37faff9a82a5269c3414a2d6fe868593afb1.tar.gz
dexon-solidity-1d3a37faff9a82a5269c3414a2d6fe868593afb1.tar.zst
dexon-solidity-1d3a37faff9a82a5269c3414a2d6fe868593afb1.zip
Avoid "unneccesary parentheses in declaration of" warning with keeping a temporary variable.
Diffstat (limited to 'libsolidity')
-rw-r--r--libsolidity/inlineasm/AsmParser.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/libsolidity/inlineasm/AsmParser.cpp b/libsolidity/inlineasm/AsmParser.cpp
index d3b0808b..d300f8fb 100644
--- a/libsolidity/inlineasm/AsmParser.cpp
+++ b/libsolidity/inlineasm/AsmParser.cpp
@@ -606,7 +606,9 @@ bool Parser::isValidNumberLiteral(string const& _literal)
{
try
{
- u256(_literal);
+ // Try to convert _literal to u256.
+ auto tmp = u256(_literal);
+ (void) tmp;
}
catch (...)
{