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

@ -12,7 +12,7 @@ static T HexToValue(std::string_view hex) {
static_assert(std::is_trivially_copyable_v<T>);
T value{};
const auto mem{Common::HexStringToVector(hex, false)};
std::memcpy(&value, mem.data(), std::min(mem.size(), sizeof(T)));
std::memcpy(&value, mem.data(), (std::min)(mem.size(), sizeof(T)));
return value;
}