Skip to content

Commit

Permalink
GH-156 Fix some unused warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
heifner committed May 17, 2024
1 parent dbeb974 commit 3695c84
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions unittests/api_tests.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -455,7 +455,7 @@ BOOST_AUTO_TEST_CASE_TEMPLATE(action_tests, T, validating_testers) { try {

// test require_notice
auto scope = std::vector<account_name>{"testapi"_n};
auto test_require_notice = [this, &chain](auto& test, std::vector<char>& data, std::vector<account_name>& scope){
auto test_require_notice = [&chain](auto& test, std::vector<char>& data, std::vector<account_name>& scope){
signed_transaction trx;
auto tm = test_api_action<TEST_METHOD("test_action", "require_notice")>{};

Expand Down Expand Up @@ -2292,7 +2292,7 @@ BOOST_AUTO_TEST_CASE_TEMPLATE(multi_index_tests, T, validating_testers) { try {
chain.set_abi( "testapi"_n, test_contracts::test_api_multi_index_abi() );
chain.produce_blocks(1);

auto check_failure = [this, &chain]( action_name a, const char* expected_error_msg ) {
auto check_failure = [&chain]( action_name a, const char* expected_error_msg ) {
BOOST_CHECK_EXCEPTION( chain.push_action( "testapi"_n, a, "testapi"_n, {} ),
eosio_assert_message_exception,
eosio_assert_message_is( expected_error_msg )
Expand Down

0 comments on commit 3695c84

Please sign in to comment.