diff options
author | Gael Guennebaud <g.gael@free.fr> | 2018-10-07 23:29:51 +0200 |
---|---|---|
committer | Gael Guennebaud <g.gael@free.fr> | 2018-10-07 23:29:51 +0200 |
commit | 6c3f6cd52b46c09aeddc60bf102b244c04bd7251 (patch) | |
tree | 7e0535ff963976a971ba842651cc78deb72bf913 /test/ref.cpp | |
parent | bcb7c66b53aad713d3edd98b24d094b5542b18bf (diff) |
Fix maybe-uninitialized warning
Diffstat (limited to 'test/ref.cpp')
-rw-r--r-- | test/ref.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
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<Vector3f> y = v4; (void)y; ); VERIFY_RAISES_STATIC_ASSERT( Ref<Vector3f> y = vx.head<4>(); (void)y; ); VERIFY_RAISES_STATIC_ASSERT( Ref<const Vector3f> y = v4; (void)y; ); |