diff options
author | Julius Huelsmann <huelsmann@campus.tu-berlin.de> | 2018-05-17 18:19:29 +0800 |
---|---|---|
committer | Alex Beregszaszi <alex@rtfs.hu> | 2018-05-17 20:48:15 +0800 |
commit | 1d3a37faff9a82a5269c3414a2d6fe868593afb1 (patch) | |
tree | 72cf7ac1ee2b825e8e387b5052dbefb27606ab2d /libsolidity | |
parent | 9e26f5fa0a956543f14dd84eb9d461ca75cce95e (diff) | |
download | dexon-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.cpp | 4 |
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 (...) { |