diff options
author | Jacques Lucke <jacques@blender.org> | 2021-08-27 12:58:40 +0300 |
---|---|---|
committer | Jacques Lucke <jacques@blender.org> | 2021-08-27 12:58:40 +0300 |
commit | 7f7370fa26fbe8597cbb9832755f854fd4a8d0e5 (patch) | |
tree | 21aa1ba1700ff26489e5967a7482aa855fbfc604 | |
parent | 6845aad1a271db9861ba54e50c97146277eead4f (diff) |
Cleanup: quiet maybe-used-uninitialized warning
-rw-r--r-- | source/blender/blenlib/tests/BLI_span_test.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/blenlib/tests/BLI_span_test.cc b/source/blender/blenlib/tests/BLI_span_test.cc index 5e3c6a1b680..4d23a53c08a 100644 --- a/source/blender/blenlib/tests/BLI_span_test.cc +++ b/source/blender/blenlib/tests/BLI_span_test.cc @@ -235,7 +235,7 @@ TEST(span, FillIndices) TEST(span, SizeInBytes) { - std::array<int, 10> a; + std::array<int, 10> a{}; Span<int> a_span(a); EXPECT_EQ(a_span.size_in_bytes(), static_cast<int64_t>(sizeof(a))); EXPECT_EQ(a_span.size_in_bytes(), 40); |