diff --git a/include/bx/inline/hash.inl b/include/bx/inline/hash.inl index 831e3bf..40e225b 100644 --- a/include/bx/inline/hash.inl +++ b/include/bx/inline/hash.inl @@ -72,6 +72,7 @@ namespace bx inline void HashMurmur2A::begin(uint32_t _seed) { + BX_UNUSED(m_tail); m_hash = _seed; m_size = 0; m_count = 0; @@ -95,6 +96,7 @@ namespace bx inline void HashMurmur3::begin(uint32_t _seed) { + BX_UNUSED(m_tail); m_hash = _seed; m_size = 0; m_count = 0; diff --git a/include/bx/platform.h b/include/bx/platform.h index 2b47723..3a61ac4 100644 --- a/include/bx/platform.h +++ b/include/bx/platform.h @@ -463,6 +463,12 @@ # define BX_CPP_NAME "C++Unknown" #endif // defined(__cplusplus) +#if BX_PLATFORM_OSX && BX_PLATFORM_OSX < 130000 +#error "Minimum supported macOS version is 13.00.\n" +#elif BX_PLATFORM_IOS && BX_PLATFORM_IOS < 160000 +#error "Minimum supported macOS version is 16.00.\n" +#endif // BX_PLATFORM_OSX < 130000 + #if BX_CPU_ENDIAN_BIG static_assert(false, "\n\n" "\t** IMPORTANT! **\n\n" diff --git a/scripts/toolchain.lua b/scripts/toolchain.lua index b60d1ef..b2834c2 100644 --- a/scripts/toolchain.lua +++ b/scripts/toolchain.lua @@ -961,6 +961,7 @@ function toolchain(_buildDir, _libDir) "-Wfatal-errors", "-Wunused-value", "-Wundef", + "-mmacosx-version-min=13.0", } includedirs { path.join(bxDir, "include/compat/osx") } @@ -972,6 +973,7 @@ function toolchain(_buildDir, _libDir) "-Wfatal-errors", "-Wunused-value", "-Wundef", + "-mios-version-min=16.0", } includedirs { path.join(bxDir, "include/compat/ios") }