|
From: Paul F. <pa...@so...> - 2025-12-20 17:52:46
|
https://sourceware.org/cgit/valgrind/commit/?id=876baafa315b5b2c82d972a12916e51811e5da6a commit 876baafa315b5b2c82d972a12916e51811e5da6a Author: Paul Floyd <pj...@wa...> Date: Sat Dec 20 18:51:43 2025 +0100 Darwin: fix a compiler warning Make a function static since it's only used in the one compilation unit. Diff: --- coregrind/m_mach/dyld_cache.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/coregrind/m_mach/dyld_cache.c b/coregrind/m_mach/dyld_cache.c index 953cccd5fb..8c5b9a3b1d 100644 --- a/coregrind/m_mach/dyld_cache.c +++ b/coregrind/m_mach/dyld_cache.c @@ -211,7 +211,7 @@ Addr VG_(dyld_cache_get_slide)(void) { return dyld_cache.slide; } -int ensure_init(void) { +static int ensure_init(void) { if (dyld_cache.header != NULL) { return 1; } |