From 0e23ba9e5a565e34fee0f024e29ce162f420ec22 Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Thu, 10 Nov 2022 17:01:30 +0100 Subject: add github action --- serialize/world-writer.cpp | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'serialize/world-writer.cpp') diff --git a/serialize/world-writer.cpp b/serialize/world-writer.cpp index c33947dc..7e89c508 100644 --- a/serialize/world-writer.cpp +++ b/serialize/world-writer.cpp @@ -12,8 +12,6 @@ #include #include -namespace Path = Corrade::Utility::Path; - namespace floormat::Serialize { struct interned_atlas final { @@ -256,10 +254,11 @@ void world::serialize(StringView filename) collect(true); char errbuf[128]; constexpr auto strerror = [] (char (&buf)[N]) -> const char* { + buf[0] = '\0'; #ifndef _WIN32 - ::strerror_r(errno, buf, std::size(buf)); + (void)::strerror_r(errno, buf, std::size(buf)); #else - ::strerror_s(buf, std::size(buf), errno); + (void)::strerror_s(buf, std::size(buf), errno); #endif return buf; }; -- cgit v1.2.3