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

@ -25,7 +25,7 @@ namespace
{
std::chrono::system_clock::time_point FileTimeToSysTime(std::filesystem::file_time_type file_time)
{
#ifdef _WIN32
#if defined(_WIN32) && !defined(__clang__)
return std::chrono::clock_cast<std::chrono::system_clock>(file_time);
#else
// Note: all compilers should switch to chrono::clock_cast