From 492e6281d79ab9abf85da528a0cc4a6d16979f9e Mon Sep 17 00:00:00 2001 From: Alexander Grund Date: Sun, 12 Jul 2020 18:33:32 +0200 Subject: [PATCH] Avoid unused paramter warning in example --- doc/example/customization.cpp | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/doc/example/customization.cpp b/doc/example/customization.cpp index ddc5324..98aa0e1 100644 --- a/doc/example/customization.cpp +++ b/doc/example/customization.cpp @@ -141,6 +141,11 @@ BOOST_AUTO_TEST_CASE( forty_one_plus_one_is_forty_two_plus_or_minus_one_near_cre #include //] +#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