fix Clang warnings

This commit is contained in:
oltolm 2023-06-28 00:10:25 +02:00
parent 86409a9c4f
commit 96b4b2904c
23 changed files with 86 additions and 55 deletions

View file

@ -11,7 +11,7 @@ namespace Common
std::optional<std::tm> Localtime(std::time_t time)
{
std::tm local_time;
#ifdef _MSC_VER
#ifdef _WIN32
if (localtime_s(&local_time, &time) != 0)
return std::nullopt;
#else