diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2022-11-10 17:01:30 +0100 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2022-11-10 22:17:43 +0100 |
commit | 0e23ba9e5a565e34fee0f024e29ce162f420ec22 (patch) | |
tree | eeaf0ec198ba8849117c9c21675a651e8c93acad /serialize/world-writer.cpp | |
parent | 67f0ff04d0fb71255d35bf7f31a684d7a2120c2a (diff) |
add github action
Diffstat (limited to 'serialize/world-writer.cpp')
-rw-r--r-- | serialize/world-writer.cpp | 7 |
1 files changed, 3 insertions, 4 deletions
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 <Corrade/Containers/StringView.h> #include <Corrade/Utility/Path.h> -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 = []<std::size_t N> (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; }; |