mirror of
https://github.com/Kitware/CMake.git
synced 2026-01-08 23:00:07 -06:00
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:
committed by
Brad King
parent
26867ebc1b
commit
b4f17e5b44
@@ -1,6 +1,6 @@
|
||||
#include <pthread.h>
|
||||
|
||||
void* start_routine(void* args)
|
||||
static void* start_routine(void* args)
|
||||
{
|
||||
return args;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user