summaryrefslogtreecommitdiff
path: root/include/mimalloc-internal.h
diff options
context:
space:
mode:
authordaan <daanl@outlook.com>2020-01-16 18:12:01 -0800
committerdaan <daanl@outlook.com>2020-01-16 18:12:01 -0800
commit6b7356a10aad3ff839689fbc2e50e11512d910b5 (patch)
tree14105adc809848bb12715ea1216dd044e8824303 /include/mimalloc-internal.h
parentb84b11b6a90ab26d581c4a569748cef80be38276 (diff)
make mimalloc compile with the highest warning level on msvc
Diffstat (limited to 'include/mimalloc-internal.h')
-rw-r--r--include/mimalloc-internal.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/mimalloc-internal.h b/include/mimalloc-internal.h
index 500764e..f039fc5 100644
--- a/include/mimalloc-internal.h
+++ b/include/mimalloc-internal.h
@@ -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__)