diff options
author | Erik Kundt <bitshift@posteo.org> | 2018-07-02 20:04:25 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-07-02 20:04:25 +0800 |
commit | da60fdab37ddd6126e5ba605e7041dc6f26ab5ee (patch) | |
tree | 32dbf508bb10fff0499fedb40dde7bf1522674dc | |
parent | 9a71b69f4009d6e0ccac715648b06994ef321d3f (diff) | |
parent | 9aefe2f1184084630c2287d3e2f7372a3c962ced (diff) | |
download | dexon-solidity-da60fdab37ddd6126e5ba605e7041dc6f26ab5ee.tar dexon-solidity-da60fdab37ddd6126e5ba605e7041dc6f26ab5ee.tar.gz dexon-solidity-da60fdab37ddd6126e5ba605e7041dc6f26ab5ee.tar.bz2 dexon-solidity-da60fdab37ddd6126e5ba605e7041dc6f26ab5ee.tar.lz dexon-solidity-da60fdab37ddd6126e5ba605e7041dc6f26ab5ee.tar.xz dexon-solidity-da60fdab37ddd6126e5ba605e7041dc6f26ab5ee.tar.zst dexon-solidity-da60fdab37ddd6126e5ba605e7041dc6f26ab5ee.zip |
Merge pull request #4400 from ethereum/warningWhitespace
Remove trailing whitespace in missing visibility warning.
4 files changed, 5 insertions, 5 deletions
diff --git a/libsolidity/analysis/StaticAnalyzer.cpp b/libsolidity/analysis/StaticAnalyzer.cpp index dad4cc7f..c7440565 100644 --- a/libsolidity/analysis/StaticAnalyzer.cpp +++ b/libsolidity/analysis/StaticAnalyzer.cpp @@ -58,8 +58,8 @@ bool StaticAnalyzer::visit(FunctionDefinition const& _function) _function.location(), "No visibility specified. Defaulting to \"" + Declaration::visibilityToString(_function.visibility()) + - "\". " + - (isInterface ? "In interfaces it defaults to external." : "") + "\"." + + (isInterface ? " In interfaces it defaults to external." : "") ); if (_function.isImplemented()) m_currentFunction = &_function; diff --git a/test/libsolidity/syntaxTests/constructor/constructor_no_visibility.sol b/test/libsolidity/syntaxTests/constructor/constructor_no_visibility.sol index f8820fdc..88553084 100644 --- a/test/libsolidity/syntaxTests/constructor/constructor_no_visibility.sol +++ b/test/libsolidity/syntaxTests/constructor/constructor_no_visibility.sol @@ -1,3 +1,3 @@ contract A { constructor() {} } // ---- -// Warning: (13-29): No visibility specified. Defaulting to "public". +// Warning: (13-29): No visibility specified. Defaulting to "public". diff --git a/test/libsolidity/syntaxTests/fallback/default_visibility.sol b/test/libsolidity/syntaxTests/fallback/default_visibility.sol index 2cb0af90..f45bbd3c 100644 --- a/test/libsolidity/syntaxTests/fallback/default_visibility.sol +++ b/test/libsolidity/syntaxTests/fallback/default_visibility.sol @@ -3,4 +3,4 @@ contract C { function() {} } // ---- -// Warning: (90-103): No visibility specified. Defaulting to "public". +// Warning: (90-103): No visibility specified. Defaulting to "public". diff --git a/test/libsolidity/syntaxTests/visibility/function_no_visibility.sol b/test/libsolidity/syntaxTests/visibility/function_no_visibility.sol index 7330ef8d..ecc36f04 100644 --- a/test/libsolidity/syntaxTests/visibility/function_no_visibility.sol +++ b/test/libsolidity/syntaxTests/visibility/function_no_visibility.sol @@ -2,4 +2,4 @@ contract C { function f() pure { } } // ---- -// Warning: (17-38): No visibility specified. Defaulting to "public". +// Warning: (17-38): No visibility specified. Defaulting to "public". |