gh-115491: Fix Clang compiler warning (#116153)

gh-115491: Fix compiler warning on macOS
This commit is contained in:
Sam Gross 2024-02-29 19:02:44 -05:00 committed by GitHub
parent ca56c3a172
commit d7ddd90308
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -27,7 +27,7 @@ terms of the MIT license. A copy of the license can be found in the file
// ------------------------------------------------------
#if (MI_DEBUG>0)
static void mi_debug_fill(mi_page_t* page, mi_block_t* block, int c, size_t size) {
static inline void mi_debug_fill(mi_page_t* page, mi_block_t* block, int c, size_t size) {
size_t offset = (size_t)page->debug_offset;
if (offset < size) {
memset((char*)block + offset, c, size - offset);