From d1419738579c990e91f3ebc65df58c650530b4e0 Mon Sep 17 00:00:00 2001 From: abitmore Date: Sun, 23 Oct 2022 18:29:41 +0000 Subject: [PATCH 1/2] Fix compiler warnings --- libraries/chain/db_maint.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/libraries/chain/db_maint.cpp b/libraries/chain/db_maint.cpp index 0eb0c22183..91d4edc88d 100644 --- a/libraries/chain/db_maint.cpp +++ b/libraries/chain/db_maint.cpp @@ -527,8 +527,11 @@ void database::process_budget() - rec.from_accumulated_fees ) - rec.from_unused_witness_budget; - modify(core, [&rec,&witness_budget,&worker_budget,&leftover_worker_funds,&dpo] - ( asset_dynamic_data_object& _core ) + modify(core, [&rec +#ifndef NDEBUG + ,&witness_budget,&worker_budget,&leftover_worker_funds,&dpo +#endif + ] ( asset_dynamic_data_object& _core ) { _core.current_supply = (_core.current_supply + rec.supply_delta ); From 836db042004c6e102ee358ef9878120101f1a193 Mon Sep 17 00:00:00 2001 From: abitmore Date: Sun, 23 Oct 2022 18:42:32 +0000 Subject: [PATCH 2/2] Add override keyword to test_delegate::on_message --- tests/tests/p2p_node_tests.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/tests/p2p_node_tests.cpp b/tests/tests/p2p_node_tests.cpp index 0faa8844df..610858531c 100644 --- a/tests/tests/p2p_node_tests.cpp +++ b/tests/tests/p2p_node_tests.cpp @@ -60,7 +60,7 @@ class test_delegate : public graphene::net::peer_connection_delegate { } void on_message( graphene::net::peer_connection* originating_peer, - const graphene::net::message& received_message ) + const graphene::net::message& received_message ) override { ilog( "on_message was called with ${msg}", ("msg",received_message) ); try {