From a1a223901ace1a11246cb8b3603a656ce7f22c4e Mon Sep 17 00:00:00 2001 From: Alexander Grund Date: Tue, 14 Apr 2020 10:42:25 +0200 Subject: [PATCH] Avoid unused function warnings in tests --- test/test_log.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/test/test_log.cpp b/test/test_log.cpp index 4915534..728eb20 100644 --- a/test/test_log.cpp +++ b/test/test_log.cpp @@ -111,7 +111,7 @@ namespace { 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" ); return s; @@ -131,7 +131,7 @@ namespace { 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" ); return s; @@ -271,7 +271,7 @@ namespace operator streamable() 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" ); return s; @@ -297,7 +297,7 @@ namespace operator streamable() 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" ); return s;