CoopHive / alkahest-mocks

3 stars 0 forks source link

Silence build warnings #6

Open matteoettam09 opened 1 month ago

matteoettam09 commented 1 month ago
Compiler run successful with warnings:
Warning (5667): Unused function parameter. Remove or comment out the variable name to silence this warning.
  --> script/alkahest/DemoObligation.sol:70:80:
   |
70 |     function checkStatement(Attestation memory statement, bytes memory demand, bytes32 counteroffer)
   |                                                                                ^^^^^^^^^^^^^^^^^^^^

Warning (2072): Unused local variable.
  --> script/alkahest/DemoObligation.sol:78:9:
   |
78 |         StatementData memory data_ = abi.decode(statement.data, (StatementData));
   |         ^^^^^^^^^^^^^^^^^^^^^^^^^^

Warning (2072): Unused local variable.
  --> script/alkahest/DemoObligation.sol:79:9:
   |
79 |         DemandData memory demand_ = abi.decode(demand, (DemandData));
   |         ^^^^^^^^^^^^^^^^^^^^^^^^^

Warning (5667): Unused function parameter. Remove or comment out the variable name to silence this warning.
  --> script/alkahest/DemoArbiter.sol:23:80:
   |
23 |     function checkStatement(Attestation memory statement, bytes memory demand, bytes32 counteroffer)
   |                                                                                ^^^^^^^^^^^^^^^^^^^^

Warning (2072): Unused local variable.
  --> script/alkahest/DemoArbiter.sol:30:9:
   |
30 |         DemandData memory demand_ = abi.decode(demand, (DemandData));
   |         ^^^^^^^^^^^^^^^^^^^^^^^^^

Warning (5667): Unused function parameter. Remove or comment out the variable name to silence this warning.
  --> script/alkahest/src/DemoObligation.sol:70:80:
   |
70 |     function checkStatement(Attestation memory statement, bytes memory demand, bytes32 counteroffer)
   |                                                                                ^^^^^^^^^^^^^^^^^^^^

Warning (2072): Unused local variable.
  --> script/alkahest/src/DemoObligation.sol:78:9:
   |
78 |         StatementData memory data_ = abi.decode(statement.data, (StatementData));
   |         ^^^^^^^^^^^^^^^^^^^^^^^^^^

Warning (2072): Unused local variable.
  --> script/alkahest/src/DemoObligation.sol:79:9:
   |
79 |         DemandData memory demand_ = abi.decode(demand, (DemandData));
   |         ^^^^^^^^^^^^^^^^^^^^^^^^^

Warning (5667): Unused function parameter. Remove or comment out the variable name to silence this warning.
  --> script/alkahest/src/DemoArbiter.sol:23:80:
   |
23 |     function checkStatement(Attestation memory statement, bytes memory demand, bytes32 counteroffer)
   |                                                                                ^^^^^^^^^^^^^^^^^^^^

Warning (2072): Unused local variable.
  --> script/alkahest/src/DemoArbiter.sol:30:9:
   |
30 |         DemandData memory demand_ = abi.decode(demand, (DemandData));
   |         ^^^^^^^^^^^^^^^^^^^^^^^^^