mirror of
https://github.com/mat007/turtle.git
synced 2026-06-22 12:13:43 +00:00
Avoid unused variable warning in test
This commit is contained in:
parent
59d531282e
commit
21567894a5
1 changed files with 1 additions and 0 deletions
|
|
@ -365,6 +365,7 @@ void instantiate_class()
|
||||||
{
|
{
|
||||||
variadic inst; // If this compiles all pure virtual methods were mocked
|
variadic inst; // If this compiles all pure virtual methods were mocked
|
||||||
const variadic& cinst = inst;
|
const variadic& cinst = inst;
|
||||||
|
(void)cinst; // Avoid unused variable warning
|
||||||
static_assert(noexcept(inst.m12()), "noexcept should be kept");
|
static_assert(noexcept(inst.m12()), "noexcept should be kept");
|
||||||
static_assert(!noexcept(inst.m14()), "noexcept should not be set");
|
static_assert(!noexcept(inst.m14()), "noexcept should not be set");
|
||||||
static_assert(noexcept(cinst.m14(1)), "noexcept should be kept");
|
static_assert(noexcept(cinst.m14(1)), "noexcept should be kept");
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue