Skip to content

Commit 47ffe0a

Browse files
committed
Avoid unsed variable in test for MSVC 2015
1 parent 0ab2c4b commit 47ffe0a

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

test/test_mock.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -364,7 +364,8 @@ MOCK_BASE_CLASS(variadic, base)
364364
void instantiate_class()
365365
{
366366
variadic inst; // If this compiles all pure virtual methods were mocked
367-
BOOST_ATTRIBUTE_UNUSED const variadic& cinst = inst;
367+
const variadic& cinst = inst;
368+
(void) cinst; // Avoid unused variable warning
368369
static_assert(noexcept(inst.m12()), "noexcept should be kept");
369370
static_assert(!noexcept(inst.m14()), "noexcept should not be set");
370371
static_assert(noexcept(cinst.m14(1)), "noexcept should be kept");

0 commit comments

Comments
 (0)