mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Remove trailing whitespace in missing visibility warning.
This commit is contained in:
parent
9a71b69f40
commit
9aefe2f118
@ -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;
|
||||
|
@ -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".
|
||||
|
@ -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".
|
||||
|
@ -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".
|
||||
|
Loading…
Reference in New Issue
Block a user