From 19468c9492a36f6cecd49ebdbd9890bdd19025cf Mon Sep 17 00:00:00 2001 From: Odysseas Georgoudis Date: Sun, 5 Nov 2023 23:33:51 +0000 Subject: [PATCH] minor - fix codacy static analysis false positive --- quill/src/detail/misc/Os.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/quill/src/detail/misc/Os.cpp b/quill/src/detail/misc/Os.cpp index a8f8357f..895839b3 100644 --- a/quill/src/detail/misc/Os.cpp +++ b/quill/src/detail/misc/Os.cpp @@ -102,7 +102,7 @@ tm* gmtime_rs(time_t const* timer, tm* buf) tm* localtime_rs(time_t const* timer, tm* buf) { #if defined(_WIN32) - errno_t const res = localtime_s(buf, timer); + auto const res = localtime_s(buf, timer); if (res) { std::ostringstream error_msg;