Skip to content

Commit

Permalink
Merge pull request #2660 from bitshares/fix-compiler-warnings
Browse files Browse the repository at this point in the history
Fix compiler warnings
  • Loading branch information
abitmore authored Oct 24, 2022
2 parents 387af45 + 836db04 commit e7bd762
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
7 changes: 5 additions & 2 deletions libraries/chain/db_maint.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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 );

Expand Down
2 changes: 1 addition & 1 deletion tests/tests/p2p_node_tests.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit e7bd762

Please sign in to comment.