solidity.vim
solidity.vim copied to clipboard
Warnings appear twice
Warnings are outputted twice, so a way to ignore one of them is required.
Example truffle compile output:
Compiling ./contracts/ETFToken.sol...
Compiling zeppelin-solidity/contracts/math/SafeMath.sol...
Compiling zeppelin-solidity/contracts/ownership/Ownable.sol...
Compiling zeppelin-solidity/contracts/token/ERC20/BasicToken.sol...
Compiling zeppelin-solidity/contracts/token/ERC20/ERC20.sol...
Compiling zeppelin-solidity/contracts/token/ERC20/ERC20Basic.sol...
Compiling zeppelin-solidity/contracts/token/ERC20/StandardToken.sol...
Compilation warnings encountered:
/Users/danielque/git/etf/contracts/ETFToken.sol:46:13: Warning: Variable is declared as a storage pointer. Use an explicit "storage" keyword to silence this warning.
TokenInfo tokenInfo = tokens[i];
^-----------------^
,/Users/danielque/git/etf/contracts/ETFToken.sol:62:13: Warning: Variable is declared as a storage pointer. Use an explicit "storage" keyword to silence this warning.
TokenInfo tokenInfo = tokens[i];
^-----------------^
/Users/danielque/git/etf/contracts/ETFToken.sol:46:13: Warning: Variable is declared as a storage pointer. Use an explicit "storage" keyword to silence this warning.
TokenInfo tokenInfo = tokens[i];
^-----------------^
,/Users/danielque/git/etf/contracts/ETFToken.sol:62:13: Warning: Variable is declared as a storage pointer. Use an explicit "storage" keyword to silence this warning.
TokenInfo tokenInfo = tokens[i];
^-----------------^
,/Users/danielque/git/etf/contracts/ETFToken.sol:120:16: TypeError: Return argument type uint256[] memory is not implicitly convertible to expected type (type of first return variable) uint256.
return _tokenWeights;
^-----------^