diff --git a/compiler-rt/lib/gwp_asan/platform_specific/guarded_pool_allocator_posix.cpp b/compiler-rt/lib/gwp_asan/platform_specific/guarded_pool_allocator_posix.cpp --- a/compiler-rt/lib/gwp_asan/platform_specific/guarded_pool_allocator_posix.cpp +++ b/compiler-rt/lib/gwp_asan/platform_specific/guarded_pool_allocator_posix.cpp @@ -106,6 +106,7 @@ if (auto *S = getSingleton()) S->enable(); }; - pthread_atfork(Disable, Enable, Enable); + static int Done = pthread_atfork(Disable, Enable, Enable); + (void)Done; } } // namespace gwp_asan