Skip to content
This repository has been archived by the owner on Aug 2, 2022. It is now read-only.

Commit

Permalink
Two small compiler warning fixes
Browse files Browse the repository at this point in the history
Unused variable & catching polymorphic exception by value
  • Loading branch information
spoonincode committed Mar 7, 2019
1 parent a70edad commit 3c6d222
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
2 changes: 0 additions & 2 deletions plugins/producer_plugin/producer_plugin.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1584,8 +1584,6 @@ void producer_plugin_impl::produce_block() {
} );

chain.commit_block();
auto hbt = chain.head_block_time();
//idump((fc::time_point::now() - hbt));

block_state_ptr new_bs = chain.head_block_state();
_producer_watermarks[new_bs->header.producer] = chain.head_block_num();
Expand Down
2 changes: 1 addition & 1 deletion plugins/txn_test_gen_plugin/txn_test_gen_plugin.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -436,7 +436,7 @@ void txn_test_gen_plugin::plugin_shutdown() {
try {
my->stop_generation();
}
catch(fc::exception e) {
catch(fc::exception& e) {
}
}

Expand Down

0 comments on commit 3c6d222

Please sign in to comment.