From 6c3f6cd52b46c09aeddc60bf102b244c04bd7251 Mon Sep 17 00:00:00 2001 From: Gael Guennebaud Date: Sun, 7 Oct 2018 23:29:51 +0200 Subject: Fix maybe-uninitialized warning --- test/ref.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'test/ref.cpp') diff --git a/test/ref.cpp b/test/ref.cpp index a94ea9677..250135bdb 100644 --- a/test/ref.cpp +++ b/test/ref.cpp @@ -255,8 +255,8 @@ void test_ref_overloads() void test_ref_fixed_size_assert() { - Vector4f v4; - VectorXf vx(10); + Vector4f v4 = Vector4f::Random(); + VectorXf vx = VectorXf::Random(10); VERIFY_RAISES_STATIC_ASSERT( Ref y = v4; (void)y; ); VERIFY_RAISES_STATIC_ASSERT( Ref y = vx.head<4>(); (void)y; ); VERIFY_RAISES_STATIC_ASSERT( Ref y = v4; (void)y; ); -- cgit v1.2.3