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(),
|
_function.location(),
|
||||||
"No visibility specified. Defaulting to \"" +
|
"No visibility specified. Defaulting to \"" +
|
||||||
Declaration::visibilityToString(_function.visibility()) +
|
Declaration::visibilityToString(_function.visibility()) +
|
||||||
"\". " +
|
"\"." +
|
||||||
(isInterface ? "In interfaces it defaults to external." : "")
|
(isInterface ? " In interfaces it defaults to external." : "")
|
||||||
);
|
);
|
||||||
if (_function.isImplemented())
|
if (_function.isImplemented())
|
||||||
m_currentFunction = &_function;
|
m_currentFunction = &_function;
|
||||||
|
@ -1,3 +1,3 @@
|
|||||||
contract A { constructor() {} }
|
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() {}
|
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 { }
|
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