Skip to content

Commit 3548d8d

Browse files
committed
add noinline to avoid warnings
1 parent 8b60a5a commit 3548d8d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/alloc.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -511,15 +511,15 @@ size_t mi_get_current_threadid(void) mi_attr_noexcept {
511511
}
512512

513513
// Free a block passing the current thread id explicitly
514-
void mi_unsafe_free_with_threadid(void* p, size_t current_tid ) mi_attr_noexcept
514+
void mi_decl_noinline mi_unsafe_free_with_threadid(void* p, size_t current_tid ) mi_attr_noexcept
515515
{
516516
mi_assert(current_tid == _mi_thread_id());
517517
_mi_free_with_threadid(p,current_tid);
518518
}
519519

520520

521521
// Free a block
522-
void mi_free(void* p) mi_attr_noexcept {
522+
void mi_decl_noinline mi_free(void* p) mi_attr_noexcept {
523523
_mi_free_with_threadid(p, _mi_thread_id());
524524
}
525525

0 commit comments

Comments
 (0)