From d98e2bdaa3903de29f62791c05472a693b0ea36b Mon Sep 17 00:00:00 2001 From: hle0 <91701075+hle0@users.noreply.github.com> Date: Sat, 26 Mar 2022 17:10:30 -0400 Subject: fix various compiler warnings (and some unwanted case statement fallthroughs) --- src/StringCompression.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/StringCompression.cpp') diff --git a/src/StringCompression.cpp b/src/StringCompression.cpp index 6678fe1bd..d82f45987 100644 --- a/src/StringCompression.cpp +++ b/src/StringCompression.cpp @@ -76,7 +76,7 @@ Compression::Result Compression::Compressor::Compress(const void * const Input, { // First see if the stack buffer has enough space: { - Result::Static Buffer; + Result::Static Buffer = {static_cast(0)}; const auto BytesWrittenOut = Algorithm(m_Handle, Input, Size, Buffer.data(), Buffer.size()); if (BytesWrittenOut != 0) @@ -189,7 +189,7 @@ Compression::Result Compression::Extractor::Extract(const ContiguousByteBufferVi { // First see if the stack buffer has enough space: { - Result::Static Buffer; + Result::Static Buffer = {static_cast(0)}; size_t BytesWrittenOut; switch (Algorithm(m_Handle, Input.data(), Input.size(), Buffer.data(), Buffer.size(), &BytesWrittenOut)) -- cgit v1.2.3