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:
Antonio Sanchez 2021-03-24 11:05:41 -07:00
parent 69a4f70956
commit 5521c65afb

View File

@ -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>());