Reduce warnings in commandline tests.

This commit is contained in:
chriseth 2020-12-01 14:53:08 +01:00
parent c193ce6c07
commit 577c1d301b
29 changed files with 37 additions and 37 deletions

View File

@ -2,10 +2,10 @@
"language": "Solidity", "language": "Solidity",
"sources": { "sources": {
"a.sol": { "a.sol": {
"content": "//SPDX-License-Identifier: GPL-3.0\ncontract A1 { function a(uint x) public pure { assert(x > 0); } } contract A2 { function a(uint x) public pure { assert(x > 0); } }" "content": "//SPDX-License-Identifier: GPL-3.0\npragma solidity >=0.0;\ncontract A1 { function a(uint x) public pure { assert(x > 0); } } contract A2 { function a(uint x) public pure { assert(x > 0); } }"
}, },
"b.sol": { "b.sol": {
"content": "//SPDX-License-Identifier: GPL-3.0\ncontract A1 { function b(uint x) public { assert(x > 0); } } contract B2 { function b(uint x) public pure { assert(x > 0); } }" "content": "//SPDX-License-Identifier: GPL-3.0\npragma solidity >=0.0;\ncontract A1 { function b(uint x) public pure { assert(x > 0); } } contract B2 { function b(uint x) public pure { assert(x > 0); } }"
} }
}, },
"settings": { "settings": {

View File

@ -2,10 +2,10 @@
"language": "Solidity", "language": "Solidity",
"sources": { "sources": {
"a.sol": { "a.sol": {
"content": "//SPDX-License-Identifier: GPL-3.0\ncontract A1 { function a(uint x) public pure { assert(x > 0); } } contract A2 { function a(uint x) public pure { assert(x > 0); } }" "content": "//SPDX-License-Identifier: GPL-3.0\npragma solidity >=0.0;\ncontract A1 { function a(uint x) public pure { assert(x > 0); } } contract A2 { function a(uint x) public pure { assert(x > 0); } }"
}, },
"b.sol": { "b.sol": {
"content": "//SPDX-License-Identifier: GPL-3.0\ncontract A1 { function b(uint x) public { assert(x > 0); } } contract B2 { function b(uint x) public pure { assert(x > 0); } }" "content": "//SPDX-License-Identifier: GPL-3.0\npragma solidity >=0.0;\ncontract A1 { function b(uint x) public pure { assert(x > 0); } } contract B2 { function b(uint x) public pure { assert(x > 0); } }"
} }
}, },
"settings": { "settings": {

View File

@ -2,10 +2,10 @@
"language": "Solidity", "language": "Solidity",
"sources": { "sources": {
"a.sol": { "a.sol": {
"content": "//SPDX-License-Identifier: GPL-3.0\ncontract A1 { function a(uint x) public pure { assert(x > 0); } } contract A2 { function a(uint x) public pure { assert(x > 0); } }" "content": "//SPDX-License-Identifier: GPL-3.0\npragma solidity >=0.0;\ncontract A1 { function a(uint x) public pure { assert(x > 0); } } contract A2 { function a(uint x) public pure { assert(x > 0); } }"
}, },
"b.sol": { "b.sol": {
"content": "//SPDX-License-Identifier: GPL-3.0\ncontract A1 { function b(uint x) public { assert(x > 0); } } contract B2 { function b(uint x) public pure { assert(x > 0); } }" "content": "//SPDX-License-Identifier: GPL-3.0\npragma solidity >=0.0;\ncontract A1 { function b(uint x) public pure { assert(x > 0); } } contract B2 { function b(uint x) public pure { assert(x > 0); } }"
} }
}, },
"settings": { "settings": {

View File

@ -2,10 +2,10 @@
"language": "Solidity", "language": "Solidity",
"sources": { "sources": {
"a.sol": { "a.sol": {
"content": "//SPDX-License-Identifier: GPL-3.0\ncontract A1 { function a(uint x) public pure { assert(x > 0); } } contract A2 { function a(uint x) public pure { assert(x > 0); } }" "content": "//SPDX-License-Identifier: GPL-3.0\npragma solidity >=0.0;\ncontract A1 { function a(uint x) public pure { assert(x > 0); } } contract A2 { function a(uint x) public pure { assert(x > 0); } }"
}, },
"b.sol": { "b.sol": {
"content": "//SPDX-License-Identifier: GPL-3.0\ncontract A1 { function b(uint x) public { assert(x > 0); } } contract B2 { function b(uint x) public pure { assert(x > 0); } }" "content": "//SPDX-License-Identifier: GPL-3.0\npragma solidity >=0.0;\ncontract A1 { function b(uint x) public pure { assert(x > 0); } } contract B2 { function b(uint x) public pure { assert(x > 0); } }"
} }
}, },
"settings": { "settings": {

View File

@ -2,10 +2,10 @@
"language": "Solidity", "language": "Solidity",
"sources": { "sources": {
"a.sol": { "a.sol": {
"content": "//SPDX-License-Identifier: GPL-3.0\ncontract A1 { function a(uint x) public pure { assert(x > 0); } } contract A2 { function a(uint x) public pure { assert(x > 0); } }" "content": "//SPDX-License-Identifier: GPL-3.0\npragma solidity >=0.0;\ncontract A1 { function a(uint x) public pure { assert(x > 0); } } contract A2 { function a(uint x) public pure { assert(x > 0); } }"
}, },
"b.sol": { "b.sol": {
"content": "//SPDX-License-Identifier: GPL-3.0\ncontract A1 { function b(uint x) public { assert(x > 0); } } contract B2 { function b(uint x) public pure { assert(x > 0); } }" "content": "//SPDX-License-Identifier: GPL-3.0\npragma solidity >=0.0;\ncontract A1 { function b(uint x) public pure { assert(x > 0); } } contract B2 { function b(uint x) public pure { assert(x > 0); } }"
} }
}, },
"settings": { "settings": {

View File

@ -2,10 +2,10 @@
"language": "Solidity", "language": "Solidity",
"sources": { "sources": {
"a.sol": { "a.sol": {
"content": "//SPDX-License-Identifier: GPL-3.0\ncontract A1 { function a(uint x) public pure { assert(x > 0); } } contract A2 { function a(uint x) public pure { assert(x > 0); } }" "content": "//SPDX-License-Identifier: GPL-3.0\npragma solidity >=0.0;\ncontract A1 { function a(uint x) public pure { assert(x > 0); } } contract A2 { function a(uint x) public pure { assert(x > 0); } }"
}, },
"b.sol": { "b.sol": {
"content": "//SPDX-License-Identifier: GPL-3.0\ncontract A1 { function b(uint x) public { assert(x > 0); } } contract B2 { function b(uint x) public pure { assert(x > 0); } }" "content": "//SPDX-License-Identifier: GPL-3.0\npragma solidity >=0.0;\ncontract A1 { function b(uint x) public pure { assert(x > 0); } } contract B2 { function b(uint x) public pure { assert(x > 0); } }"
} }
}, },
"settings": { "settings": {

View File

@ -2,10 +2,10 @@
"language": "Solidity", "language": "Solidity",
"sources": { "sources": {
"a.sol": { "a.sol": {
"content": "//SPDX-License-Identifier: GPL-3.0\ncontract A1 { function a(uint x) public pure { assert(x > 0); } } contract A2 { function a(uint x) public pure { assert(x > 0); } }" "content": "//SPDX-License-Identifier: GPL-3.0\npragma solidity >=0.0;\ncontract A1 { function a(uint x) public pure { assert(x > 0); } } contract A2 { function a(uint x) public pure { assert(x > 0); } }"
}, },
"b.sol": { "b.sol": {
"content": "//SPDX-License-Identifier: GPL-3.0\ncontract A1 { function b(uint x) public { assert(x > 0); } } contract B2 { function b(uint x) public pure { assert(x > 0); } }" "content": "//SPDX-License-Identifier: GPL-3.0\npragma solidity >=0.0;\ncontract A1 { function b(uint x) public pure { assert(x > 0); } } contract B2 { function b(uint x) public pure { assert(x > 0); } }"
} }
}, },
"settings": { "settings": {

View File

@ -2,7 +2,7 @@
"language": "Solidity", "language": "Solidity",
"sources": { "sources": {
"a.sol": { "a.sol": {
"content": "// SPDX-License-Identifier: GPL-3.0\ncontract A { uint256 immutable x = 1 + 3; function f() public pure returns (uint256) { return x; } }" "content": "// SPDX-License-Identifier: GPL-3.0\npragma solidity >=0.0;\ncontract A { uint256 immutable x = 1 + 3; function f() public pure returns (uint256) { return x; } }"
} }
}, },
"settings": { "settings": {

View File

@ -2,7 +2,7 @@
"language": "Solidity", "language": "Solidity",
"sources": { "sources": {
"a.sol": { "a.sol": {
"content": "// SPDX-License-Identifier: GPL-3.0\npragma abicoder v2; contract A { function f(uint[] memory) public view returns (uint256) { } }" "content": "// SPDX-License-Identifier: GPL-3.0\npragma solidity >=0.0;\npragma abicoder v2; contract A { function f(uint[] memory) public view returns (uint256) { } }"
} }
}, },
"settings": { "settings": {

View File

@ -4,7 +4,7 @@
{ {
"A": "A":
{ {
"content": "// SPDX-License-Identifier: GPL-3.0\npragma solidity >=0.0; contract C {} contract D { function f() public { C c = new C(); } }" "content": "// SPDX-License-Identifier: GPL-3.0\npragma solidity >=0.0; contract C {} contract D { function f() public { new C(); } }"
} }
}, },
"settings": "settings":

View File

@ -2,7 +2,7 @@
"language": "Solidity", "language": "Solidity",
"sources": { "sources": {
"fileA": { "fileA": {
"content": "//SPDX-License-Identifier: GPL-3.0\ncontract A { }" "content": "//SPDX-License-Identifier: GPL-3.0\npragma solidity >=0.0;\ncontract A { }"
} }
}, },
"settings": { "settings": {

View File

@ -2,7 +2,7 @@
"language": "Solidity", "language": "Solidity",
"sources": { "sources": {
"fileA": { "fileA": {
"content": "//SPDX-License-Identifier: GPL-3.0\ncontract A { }" "content": "//SPDX-License-Identifier: GPL-3.0\npragma solidity >=0.0;\ncontract A { }"
} }
}, },
"settings": { "settings": {

View File

@ -2,7 +2,7 @@
"language": "Solidity", "language": "Solidity",
"sources": { "sources": {
"fileA": { "fileA": {
"content": "//SPDX-License-Identifier: GPL-3.0\ncontract A { }" "content": "//SPDX-License-Identifier: GPL-3.0\npragma solidity >=0.0;\ncontract A { }"
} }
}, },
"settings": { "settings": {

View File

@ -2,7 +2,7 @@
"language": "Solidity", "language": "Solidity",
"sources": { "sources": {
"fileA": { "fileA": {
"content": "//SPDX-License-Identifier: GPL-3.0\ncontract A { }" "content": "//SPDX-License-Identifier: GPL-3.0\npragma solidity >=0.0;\ncontract A { }"
} }
}, },
"settings": { "settings": {

View File

@ -2,7 +2,7 @@
"language": "Solidity", "language": "Solidity",
"sources": { "sources": {
"fileA": { "fileA": {
"content": "//SPDX-License-Identifier: GPL-3.0\ncontract A { }" "content": "//SPDX-License-Identifier: GPL-3.0\npragma solidity >=0.0;\ncontract A { }"
} }
}, },
"settings": { "settings": {

View File

@ -2,7 +2,7 @@
"language": "Solidity", "language": "Solidity",
"sources": { "sources": {
"fileA": { "fileA": {
"content": "//SPDX-License-Identifier: GPL-3.0\ncontract A { }" "content": "//SPDX-License-Identifier: GPL-3.0\npragma solidity >=0.0;\ncontract A { }"
} }
}, },
"settings": { "settings": {

View File

@ -2,7 +2,7 @@
"language": "Solidity", "language": "Solidity",
"sources": { "sources": {
"fileA": { "fileA": {
"content": "//SPDX-License-Identifier: GPL-3.0\ncontract A { }" "content": "//SPDX-License-Identifier: GPL-3.0\npragma solidity >=0.0;\ncontract A { }"
} }
}, },
"settings": { "settings": {

View File

@ -2,7 +2,7 @@
"language": "Solidity", "language": "Solidity",
"sources": { "sources": {
"fileA": { "fileA": {
"content": "//SPDX-License-Identifier: GPL-3.0\ncontract A { }" "content": "//SPDX-License-Identifier: GPL-3.0\npragma solidity >=0.0;\ncontract A { }"
} }
}, },
"settings": { "settings": {

View File

@ -2,7 +2,7 @@
"language": "Solidity", "language": "Solidity",
"sources": { "sources": {
"fileA": { "fileA": {
"content": "//SPDX-License-Identifier: GPL-3.0\ncontract A { bytes s1 = \"test\"; bytes s2; }" "content": "//SPDX-License-Identifier: GPL-3.0\npragma solidity >=0.0;\ncontract A { bytes s1 = \"test\"; bytes s2; }"
} }
}, },
"settings": { "settings": {

View File

@ -2,7 +2,7 @@
"language": "Solidity", "language": "Solidity",
"sources": { "sources": {
"fileA": { "fileA": {
"content": "//SPDX-License-Identifier: GPL-3.0\ncontract A { uint[] array1; bool[] array2; }" "content": "//SPDX-License-Identifier: GPL-3.0\npragma solidity >=0.0;\ncontract A { uint[] array1; bool[] array2; }"
} }
}, },
"settings": { "settings": {

View File

@ -2,7 +2,7 @@
"language": "Solidity", "language": "Solidity",
"sources": { "sources": {
"fileA": { "fileA": {
"content": "//SPDX-License-Identifier: GPL-3.0\ncontract A { struct S { uint128 a; uint128 b; uint[2] staticArray; uint[] dynArray; } uint x; uint y; S s; address addr; mapping (uint => mapping (address => bool)) map; uint[] array; string s1; bytes b1; }" "content": "//SPDX-License-Identifier: GPL-3.0\npragma solidity >=0.0;\ncontract A { struct S { uint128 a; uint128 b; uint[2] staticArray; uint[] dynArray; } uint x; uint y; S s; address addr; mapping (uint => mapping (address => bool)) map; uint[] array; string s1; bytes b1; }"
} }
}, },
"settings": { "settings": {

View File

@ -2,7 +2,7 @@
"language": "Solidity", "language": "Solidity",
"sources": { "sources": {
"fileA": { "fileA": {
"content": "//SPDX-License-Identifier: GPL-3.0\ncontract A { uint x; uint y; mapping (uint => mapping (address => bool)) map; }" "content": "//SPDX-License-Identifier: GPL-3.0\npragma solidity >=0.0;\ncontract A { uint x; uint y; mapping (uint => mapping (address => bool)) map; }"
} }
}, },
"settings": { "settings": {

View File

@ -2,7 +2,7 @@
"language": "Solidity", "language": "Solidity",
"sources": { "sources": {
"fileA": { "fileA": {
"content": "//SPDX-License-Identifier: GPL-3.0\ncontract A { }" "content": "//SPDX-License-Identifier: GPL-3.0\npragma solidity >=0.0;\ncontract A { }"
} }
}, },
"settings": { "settings": {

View File

@ -2,10 +2,10 @@
"language": "Solidity", "language": "Solidity",
"sources": { "sources": {
"fileA": { "fileA": {
"content": "//SPDX-License-Identifier: GPL-3.0\ncontract A { }" "content": "//SPDX-License-Identifier: GPL-3.0\npragma solidity >=0.0;\ncontract A { }"
}, },
"fileB": { "fileB": {
"content": "//SPDX-License-Identifier: GPL-3.0\ncontract A { uint x; uint y; }" "content": "//SPDX-License-Identifier: GPL-3.0\npragma solidity >=0.0;\ncontract A { uint x; uint y; }"
} }
}, },
"settings": { "settings": {

View File

@ -2,7 +2,7 @@
"language": "Solidity", "language": "Solidity",
"sources": { "sources": {
"fileA": { "fileA": {
"content": "//SPDX-License-Identifier: GPL-3.0\ncontract A { string s1 = \"test\"; string s2; }" "content": "//SPDX-License-Identifier: GPL-3.0\npragma solidity >=0.0;\ncontract A { string s1 = \"test\"; string s2; }"
} }
}, },
"settings": { "settings": {

View File

@ -2,7 +2,7 @@
"language": "Solidity", "language": "Solidity",
"sources": { "sources": {
"fileA": { "fileA": {
"content": "//SPDX-License-Identifier: GPL-3.0\ncontract A { struct S { uint a; uint b; uint[2] staticArray; uint[] dynArray; } uint x; uint y; S s; address addr; }" "content": "//SPDX-License-Identifier: GPL-3.0\npragma solidity >=0.0;\ncontract A { struct S { uint a; uint b; uint[2] staticArray; uint[] dynArray; } uint x; uint y; S s; address addr; }"
} }
}, },
"settings": { "settings": {

View File

@ -2,7 +2,7 @@
"language": "Solidity", "language": "Solidity",
"sources": { "sources": {
"fileA": { "fileA": {
"content": "//SPDX-License-Identifier: GPL-3.0\ncontract A { struct S { uint128 a; uint128 b; uint[2] staticArray; uint[] dynArray; } uint x; uint y; S s; address addr; }" "content": "//SPDX-License-Identifier: GPL-3.0\npragma solidity >=0.0;\ncontract A { struct S { uint128 a; uint128 b; uint[2] staticArray; uint[] dynArray; } uint x; uint y; S s; address addr; }"
} }
}, },
"settings": { "settings": {

View File

@ -2,7 +2,7 @@
"language": "Solidity", "language": "Solidity",
"sources": { "sources": {
"fileA": { "fileA": {
"content": "//SPDX-License-Identifier: GPL-3.0\ncontract A { uint x; uint y; address addr; uint[2] array; }" "content": "//SPDX-License-Identifier: GPL-3.0\npragma solidity >=0.0;\ncontract A { uint x; uint y; address addr; uint[2] array; }"
} }
}, },
"settings": { "settings": {

View File

@ -2,7 +2,7 @@
"language": "Solidity", "language": "Solidity",
"sources": { "sources": {
"fileA": { "fileA": {
"content": "//SPDX-License-Identifier: GPL-3.0\ncontract A { uint64 x; uint128 y; uint128 z; address addr; uint[2] array; }" "content": "//SPDX-License-Identifier: GPL-3.0\npragma solidity >=0.0;\ncontract A { uint64 x; uint128 y; uint128 z; address addr; uint[2] array; }"
} }
}, },
"settings": { "settings": {