]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
gh-115491: Fix Clang compiler warning (#116153)
authorSam Gross <colesbury@gmail.com>
Fri, 1 Mar 2024 00:02:44 +0000 (19:02 -0500)
committerGitHub <noreply@github.com>
Fri, 1 Mar 2024 00:02:44 +0000 (16:02 -0800)
gh-115491: Fix compiler warning on macOS

Objects/mimalloc/alloc.c

index b369a5ebcb23a76f7643acd1b7937aed53f21115..e6286b54bedc1449fd52c3fed2844b6439dc31ca 100644 (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);