Unused variables warning in address.call return tuple (bool, bytes memory)
2
I have the following code fragment. function forward(address destination, bytes memory data) public { (bool res, bytes memory retData) = destination.call(data); assert(res); } Since retData is not used, I am getting the following warning (compiled with solidity 0.5.0): Compilation warnings encountered: /Users/ivica/Documents/deka/hekate.reloaded/digits-node/contracts/IdentityProxy.sol:55:20: Warning: Unused local variable. (bool res, bytes memory retData) = destination.call(data); ^------------------^ Question: how to get rid of it?
solidity solidity-best-practices
share | improve this question
asked Dec 2...