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 ); 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 {