Skip to content

Commit fc94608

Browse files
committed
gh-144490: Fix mimalloc debug build
1 parent 432ddd9 commit fc94608

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

Include/internal/mimalloc/mimalloc/types.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -608,8 +608,8 @@ struct mi_heap_s {
608608

609609
#if (MI_DEBUG)
610610
// use our own assertion to print without memory allocation
611-
mi_decl_noreturn mi_decl_cold mi_decl_throw
612-
void _mi_assert_fail(const char* assertion, const char* fname, unsigned int line, const char* func);
611+
mi_decl_noreturn mi_decl_cold
612+
void _mi_assert_fail(const char* assertion, const char* fname, unsigned int line, const char* func) mi_decl_throw;
613613
#define mi_assert(expr) ((expr) ? (void)0 : _mi_assert_fail(#expr,__FILE__,__LINE__,__func__))
614614
#else
615615
#define mi_assert(x)

Lib/test/test_cppext/extension.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
// mode (when MI_DEBUG is not zero)
2020
// mimalloc emits compiler warnings when Python is built on Windows
2121
// in free-threaded mode.
22-
# if !defined(Py_DEBUG) && !(defined(MS_WINDOWS) && defined(Py_GIL_DISABLED))
22+
# if !(defined(MS_WINDOWS) && defined(Py_GIL_DISABLED))
2323
# include "internal/pycore_backoff.h"
2424
# include "internal/pycore_cell.h"
2525
# endif

0 commit comments

Comments
 (0)