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
This commit is contained in:
David Benjamin 2024-04-20 23:44:54 -04:00 committed by Brad King
parent 26867ebc1b
commit b4f17e5b44

View File

@ -1,6 +1,6 @@
#include <pthread.h>
void* start_routine(void* args)
static void* start_routine(void* args)
{
return args;
}