aboutsummaryrefslogtreecommitdiffhomepage
path: root/test
diff options
context:
space:
mode:
authorGravatar Antonio Sanchez <cantonios@google.com>2021-03-24 11:05:41 -0700
committerGravatar Antonio Sanchez <cantonios@google.com>2021-03-24 11:05:41 -0700
commit5521c65afbddbb1ec05c06bda0fc250ece27fc7f (patch)
tree404a3866e07babd1c31e7ce2c30a46e6ea6014cf /test
parent69a4f709562604d7323355ac54403ad5cbf2e99c (diff)
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.
Diffstat (limited to 'test')
-rw-r--r--test/mixingtypes.cpp1
1 files changed, 1 insertions, 0 deletions
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<int SizeAtCompileType> 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>());