Merge pull request #102 from bitshares/jmj_macwarn
Fix some macOS warnings
This commit is contained in:
commit
2bf93ec086
2 changed files with 2 additions and 2 deletions
|
|
@ -631,7 +631,7 @@ namespace fc
|
||||||
to_stream(os, v.get_object(), format, max_depth - 1 );
|
to_stream(os, v.get_object(), format, max_depth - 1 );
|
||||||
return;
|
return;
|
||||||
default:
|
default:
|
||||||
FC_THROW_EXCEPTION( fc::invalid_arg_exception, "Unsupported variant type: " + v.get_type() );
|
FC_THROW_EXCEPTION( fc::invalid_arg_exception, "Unsupported variant type: ${type}", ( "type", v.get_type() ) );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -74,7 +74,7 @@ BOOST_AUTO_TEST_CASE( do_something_parallel )
|
||||||
results.reserve( 20 );
|
results.reserve( 20 );
|
||||||
boost::thread_specific_ptr<int> tls;
|
boost::thread_specific_ptr<int> tls;
|
||||||
for( size_t i = 0; i < results.capacity(); i++ )
|
for( size_t i = 0; i < results.capacity(); i++ )
|
||||||
results.push_back( fc::do_parallel( [i,&tls] () {
|
results.push_back( fc::do_parallel( [&tls] () {
|
||||||
if( !tls.get() ) { tls.reset( new int(0) ); }
|
if( !tls.get() ) { tls.reset( new int(0) ); }
|
||||||
result res = { boost::this_thread::get_id(), (*tls.get())++ };
|
result res = { boost::this_thread::get_id(), (*tls.get())++ };
|
||||||
return res;
|
return res;
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue