From 233046d738f194bd288709d1d2763eeb9f35f346 Mon Sep 17 00:00:00 2001 From: Alexander Grund Date: Fri, 17 Apr 2020 20:31:32 +0200 Subject: [PATCH] Fix another unused variable warning --- include/turtle/detail/expectation_template.hpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/include/turtle/detail/expectation_template.hpp b/include/turtle/detail/expectation_template.hpp index 030a062..20bf6f4 100644 --- a/include/turtle/detail/expectation_template.hpp +++ b/include/turtle/detail/expectation_template.hpp @@ -29,6 +29,9 @@ #define MOCK_REF_ARG(z, n, d) \ typename ref_arg< T##n >::type a##n +#define MOCK_REF_ARG_T(z, n, d) \ + typename ref_arg< T##n >::type + namespace mock { namespace detail @@ -42,7 +45,7 @@ namespace detail { private: virtual bool operator()( - BOOST_PP_ENUM(MOCK_NUM_ARGS, MOCK_REF_ARG, _) ) + BOOST_PP_ENUM(MOCK_NUM_ARGS, MOCK_REF_ARG_T, _) ) { return true; } @@ -269,4 +272,5 @@ namespace detail #undef MOCK_EXPECTATION_SERIALIZE_ANY #undef MOCK_EXPECTATION_PARAM #undef MOCK_REF_ARG +#undef MOCK_REF_ARG_T #undef MOCK_RV_REF