make mimalloc compile with the highest warning level on msvc

This commit is contained in:
daan 2020-01-16 18:12:01 -08:00
parent b84b11b6a9
commit 6b7356a10a
3 changed files with 13 additions and 12 deletions

View file

@ -21,6 +21,7 @@ terms of the MIT license. A copy of the license can be found in the file
#endif
#if defined(_MSC_VER)
#pragma warning(disable:4127) // constant conditional due to MI_SECURE paths
#define mi_decl_noinline __declspec(noinline)
#define mi_attr_noreturn
#elif defined(__GNUC__) || defined(__clang__)