mirror of
https://github.com/mat007/turtle.git
synced 2026-06-22 12:13:43 +00:00
Avoid unused function warnings in tests
This commit is contained in:
parent
57c000f8eb
commit
a1a223901a
1 changed files with 4 additions and 4 deletions
|
|
@ -111,7 +111,7 @@ namespace
|
||||||
{
|
{
|
||||||
struct streamable
|
struct streamable
|
||||||
{};
|
{};
|
||||||
std::ostream& operator<<( std::ostream& s, const streamable& )
|
BOOST_ATTRIBUTE_UNUSED std::ostream& operator<<( std::ostream& s, const streamable& )
|
||||||
{
|
{
|
||||||
BOOST_FAIL( "should not have been called" );
|
BOOST_FAIL( "should not have been called" );
|
||||||
return s;
|
return s;
|
||||||
|
|
@ -131,7 +131,7 @@ namespace
|
||||||
{
|
{
|
||||||
struct mock_streamable
|
struct mock_streamable
|
||||||
{};
|
{};
|
||||||
std::ostream& operator<<( std::ostream& s, const mock_streamable& )
|
BOOST_ATTRIBUTE_UNUSED std::ostream& operator<<( std::ostream& s, const mock_streamable& )
|
||||||
{
|
{
|
||||||
BOOST_FAIL( "should not have been called" );
|
BOOST_FAIL( "should not have been called" );
|
||||||
return s;
|
return s;
|
||||||
|
|
@ -271,7 +271,7 @@ namespace
|
||||||
operator streamable() const;
|
operator streamable() const;
|
||||||
template< typename T > operator T() const;
|
template< typename T > operator T() const;
|
||||||
};
|
};
|
||||||
std::ostream& operator<<( std::ostream& s, const ambiguous_convertible_streamable& )
|
BOOST_ATTRIBUTE_UNUSED std::ostream& operator<<( std::ostream& s, const ambiguous_convertible_streamable& )
|
||||||
{
|
{
|
||||||
BOOST_FAIL( "should not have been called" );
|
BOOST_FAIL( "should not have been called" );
|
||||||
return s;
|
return s;
|
||||||
|
|
@ -297,7 +297,7 @@ namespace
|
||||||
operator streamable() const;
|
operator streamable() const;
|
||||||
template< typename T > operator T() const;
|
template< typename T > operator T() const;
|
||||||
};
|
};
|
||||||
std::ostream& operator<<( std::ostream& s, const ambiguous_convertible_mock_streamable& )
|
BOOST_ATTRIBUTE_UNUSED std::ostream& operator<<( std::ostream& s, const ambiguous_convertible_mock_streamable& )
|
||||||
{
|
{
|
||||||
BOOST_FAIL( "should not have been called" );
|
BOOST_FAIL( "should not have been called" );
|
||||||
return s;
|
return s;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue