You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I write a no-effect statement such as 1 + 2, Solidity compiler warns me that it has no effect. But when I substitute 1 with x, no warning is issued. Does "x + 2" have any side effect, such as changing the value of x or increase the memory cost?
Description
When I write a no-effect statement such as 1 + 2, Solidity compiler warns me that it has no effect. But when I substitute 1 with x, no warning is issued. Does "x + 2" have any side effect, such as changing the value of x or increase the memory cost?
Environment
The text was updated successfully, but these errors were encountered: