diff options
| author | Stefan Boberg <[email protected]> | 2021-10-29 18:11:06 +0200 |
|---|---|---|
| committer | Stefan Boberg <[email protected]> | 2021-10-29 18:11:06 +0200 |
| commit | a5b64d784227e09bd71e78f0b74438bf579673fb (patch) | |
| tree | abee5571050aa616fb2a73cdfaa210c2300f6e96 /zencore/memory.cpp | |
| parent | Added SharedBuffer::MakeView implementation accepting container argument, to ... (diff) | |
| download | zen-a5b64d784227e09bd71e78f0b74438bf579673fb.tar.xz zen-a5b64d784227e09bd71e78f0b74438bf579673fb.zip | |
memory: Minor change to squelch static analysis warnings
Diffstat (limited to 'zencore/memory.cpp')
| -rw-r--r-- | zencore/memory.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/zencore/memory.cpp b/zencore/memory.cpp index 62c81076d..14ea7ca1d 100644 --- a/zencore/memory.cpp +++ b/zencore/memory.cpp @@ -185,13 +185,13 @@ TEST_CASE("ChunkingLinearAllocator") TEST_CASE("MemoryView") { { - uint8_t Array1[16]; + uint8_t Array1[16] = {}; MemoryView View1 = MakeMemoryView(Array1); CHECK(View1.GetSize() == 16); } { - uint32_t Array2[16]; + uint32_t Array2[16] = {}; MemoryView View2 = MakeMemoryView(Array2); CHECK(View2.GetSize() == 64); } |