mirror of
https://github.com/mat007/turtle.git
synced 2026-06-22 12:13:43 +00:00
Avoid unused paramter warning in example
This commit is contained in:
parent
91b738da27
commit
492e6281d7
1 changed files with 9 additions and 0 deletions
|
|
@ -141,6 +141,11 @@ BOOST_AUTO_TEST_CASE( forty_one_plus_one_is_forty_two_plus_or_minus_one_near_cre
|
|||
#include <turtle/mock.hpp>
|
||||
//]
|
||||
|
||||
#if defined(__GNUC__)
|
||||
#pragma GCC diagnostic push
|
||||
#pragma GCC diagnostic ignored "-Wunused-parameter"
|
||||
#endif
|
||||
|
||||
//[ custom_policy
|
||||
template< typename Result >
|
||||
struct custom_policy
|
||||
|
|
@ -167,6 +172,10 @@ struct custom_policy
|
|||
};
|
||||
//]
|
||||
|
||||
#if defined(__GNUC__)
|
||||
#pragma GCC diagnostic pop
|
||||
#endif
|
||||
|
||||
#undef MOCK_ERROR_POLICY
|
||||
//[ define_custom_policy
|
||||
#define MOCK_ERROR_POLICY custom_policy
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue