From 5521c65afbddbb1ec05c06bda0fc250ece27fc7f Mon Sep 17 00:00:00 2001 From: Antonio Sanchez Date: Wed, 24 Mar 2021 11:05:41 -0700 Subject: 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. --- test/mixingtypes.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'test') diff --git a/test/mixingtypes.cpp b/test/mixingtypes.cpp index aad63ec2b..d450dbff8 100644 --- a/test/mixingtypes.cpp +++ b/test/mixingtypes.cpp @@ -311,6 +311,7 @@ template void mixingtypes(int size = SizeAtCompileType) EIGEN_DECLARE_TEST(mixingtypes) { + g_called = false; // Silence -Wunneeded-internal-declaration. for(int i = 0; i < g_repeat; i++) { CALL_SUBTEST_1(mixingtypes<3>()); CALL_SUBTEST_2(mixingtypes<4>()); -- cgit v1.2.3