🚨 fix warning
unit-regression2.cpp:207:7: error: 'FooBar::foo' should be initialized in the member initialization list [-Werror=effc++]
207 | class FooBar
| ^~~~~~
This commit is contained in:
parent
346c00e17c
commit
d6740b4abd
@ -727,7 +727,10 @@ TEST_CASE("regression tests 2")
|
|||||||
json j;
|
json j;
|
||||||
j[0]["value"] = true;
|
j[0]["value"] = true;
|
||||||
std::vector<FooBar> foo;
|
std::vector<FooBar> foo;
|
||||||
|
DOCTEST_GCC_SUPPRESS_WARNING_PUSH
|
||||||
|
DOCTEST_GCC_SUPPRESS_WARNING(-Weffc++)
|
||||||
j.get_to(foo);
|
j.get_to(foo);
|
||||||
|
DOCTEST_GCC_SUPPRESS_WARNING_POP
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user