diff --git a/libc/bionic/malloc_debug_common.cpp b/libc/bionic/malloc_debug_common.cpp index ccceb1441..e33405e7b 100644 --- a/libc/bionic/malloc_debug_common.cpp +++ b/libc/bionic/malloc_debug_common.cpp @@ -293,7 +293,7 @@ unsigned int gMallocDebugBacklog; int gMallocDebugLevel; template -void InitMallocFunction(void* malloc_impl_handler, FunctionType* func, const char* prefix, const char* suffix) { +static void InitMallocFunction(void* malloc_impl_handler, FunctionType* func, const char* prefix, const char* suffix) { char symbol[128]; snprintf(symbol, sizeof(symbol), "%s_%s", prefix, suffix); *func = reinterpret_cast(dlsym(malloc_impl_handler, symbol));