Skip to content

Commit

Permalink
Silenced some warnings (unused arguments)
Browse files Browse the repository at this point in the history
  • Loading branch information
grantila committed Mar 6, 2017
1 parent 0881994 commit 57f1d13
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion libs/q-test/include/q-test/spy.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ class call_spy
{ }

typename q::remove_rvalue_reference< Ret >::type
operator( )( Args... args )
operator( )( Args... )
{
counter_->inc( );
return value_;
Expand Down
6 changes: 3 additions & 3 deletions libs/q/include/q/bit_flags.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -123,23 +123,23 @@ class bit_flags< 0 >
template< std::size_t index >
void set( bool value = true ); // This is impossible

void set( std::size_t index, bool value = true )
void set( std::size_t, bool = true )
{
throw std::out_of_range( "Bit is out of range" );
}

template< std::size_t index >
void unset( ); // This is impossible

void unset( std::size_t index )
void unset( std::size_t )
{
throw std::out_of_range( "Bit is out of range" );
}

template< std::size_t index >
bool is_set( ) const; // This is impossible

bool is_set( std::size_t index ) const
bool is_set( std::size_t ) const
{
throw std::out_of_range( "Bit is out of range" );
}
Expand Down
2 changes: 1 addition & 1 deletion libs/q/include/q/promise/defer.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -341,7 +341,7 @@ class defer
and
::q::is_promise< Q_RESULT_OF( Fn ) >::value
>::type
set_by_fun( Fn&& fn, Args&&... args )
set_by_fun( Fn&& fn, Args&&... )
{
try
{
Expand Down

0 comments on commit 57f1d13

Please sign in to comment.