From b4f17e5b4498740ae94af20f107122801ec397ac Mon Sep 17 00:00:00 2001 From: David Benjamin Date: Sat, 20 Apr 2024 23:44:54 -0400 Subject: FindThreads: Fix pthreads detection with -Wmissing-prototypes If the project builds with `-Wmissing-prototypes` to catch unnecessarily exported symbols, `CheckForPthreads.c` will fail to build. Fix this by marking `start_routine` as static. Fixes: #25886 --- Modules/CheckForPthreads.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Modules/CheckForPthreads.c b/Modules/CheckForPthreads.c index e70ceb1..ea1f7ac 100644 --- a/Modules/CheckForPthreads.c +++ b/Modules/CheckForPthreads.c @@ -1,6 +1,6 @@ #include -void* start_routine(void* args) +static void* start_routine(void* args) { return args; } -- cgit v0.12