solidity.vim icon indicating copy to clipboard operation
solidity.vim copied to clipboard

Warnings appear twice

Open dmdque opened this issue 8 years ago • 0 comments

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;
               ^-----------^

dmdque avatar Feb 04 '18 00:02 dmdque