aboutsummaryrefslogtreecommitdiffstats
path: root/test/libsolidity/syntaxTests/parsing/empty_function.sol
diff options
context:
space:
mode:
authorchriseth <chris@ethereum.org>2018-12-13 00:00:50 +0800
committerGitHub <noreply@github.com>2018-12-13 00:00:50 +0800
commit87237281bf252b7afcf5d1295e75a03bf41ac864 (patch)
treebb04e0727932ff612735060893a5c37b2a30a99e /test/libsolidity/syntaxTests/parsing/empty_function.sol
parent7e9a29090c29a8fb678f348fa7333a7658d70cf6 (diff)
parent8c49d86e6b2422757fe5579711ef7cdf1718b81c (diff)
downloaddexon-solidity-87237281bf252b7afcf5d1295e75a03bf41ac864.tar.gz
dexon-solidity-87237281bf252b7afcf5d1295e75a03bf41ac864.tar.zst
dexon-solidity-87237281bf252b7afcf5d1295e75a03bf41ac864.zip
Merge pull request #5630 from ethereum/warn_functions_empty_body
Supress unused var and state mut warnings for functions with empty body
Diffstat (limited to 'test/libsolidity/syntaxTests/parsing/empty_function.sol')
-rw-r--r--test/libsolidity/syntaxTests/parsing/empty_function.sol4
1 files changed, 0 insertions, 4 deletions
diff --git a/test/libsolidity/syntaxTests/parsing/empty_function.sol b/test/libsolidity/syntaxTests/parsing/empty_function.sol
index 320a0bcc..3f42e4e3 100644
--- a/test/libsolidity/syntaxTests/parsing/empty_function.sol
+++ b/test/libsolidity/syntaxTests/parsing/empty_function.sol
@@ -3,7 +3,3 @@ contract test {
function functionName(bytes20 arg1, address addr) public view returns (int id) { }
}
// ----
-// Warning: (58-70): Unused function parameter. Remove or comment out the variable name to silence this warning.
-// Warning: (72-84): Unused function parameter. Remove or comment out the variable name to silence this warning.
-// Warning: (107-113): Unused function parameter. Remove or comment out the variable name to silence this warning.
-// Warning: (36-118): Function state mutability can be restricted to pure