mirror of
https://gitlab.com/libeigen/eigen.git
synced 2025-06-04 18:54:00 +08:00
Eliminate mixingtypes_7 warning.
`g_called` is not used in subtest 7, so was generating a `-Wunneeded-internal-declaration` warnings. Here we silence it by initializing the static variable.
This commit is contained in:
parent
69a4f70956
commit
5521c65afb
@ -311,6 +311,7 @@ template<int SizeAtCompileType> void mixingtypes(int size = SizeAtCompileType)
|
|||||||
|
|
||||||
EIGEN_DECLARE_TEST(mixingtypes)
|
EIGEN_DECLARE_TEST(mixingtypes)
|
||||||
{
|
{
|
||||||
|
g_called = false; // Silence -Wunneeded-internal-declaration.
|
||||||
for(int i = 0; i < g_repeat; i++) {
|
for(int i = 0; i < g_repeat; i++) {
|
||||||
CALL_SUBTEST_1(mixingtypes<3>());
|
CALL_SUBTEST_1(mixingtypes<3>());
|
||||||
CALL_SUBTEST_2(mixingtypes<4>());
|
CALL_SUBTEST_2(mixingtypes<4>());
|
||||||
|
Loading…
x
Reference in New Issue
Block a user