Fix compilation on clang-cl once and for all

- only pass -W things to c/cxx
- fix max/min macros, thanks microsoft

Signed-off-by: crueter <crueter@crueter.xyz>
This commit is contained in:
crueter 2025-09-07 22:21:20 -04:00 committed by crueter
parent f18c354fb6
commit 58b4ace06e
Signed by: crueter
GPG key ID: 425ACD2D4830EBC6
245 changed files with 624 additions and 604 deletions

View file

@ -185,7 +185,7 @@ struct System::Impl {
Service::PSC::Time::LocationName name{};
auto new_name = Settings::GetTimeZoneString(Settings::values.time_zone_index.GetValue());
std::memcpy(name.data(), new_name.data(), std::min(name.size(), new_name.size()));
std::memcpy(name.data(), new_name.data(), (std::min)(name.size(), new_name.size()));
timezone_service->SetDeviceLocationName(name);