mirror of
https://github.com/Kitware/CMake.git
synced 2026-01-05 13:20:47 -06:00
When CMAKE_C_FLAGS contains '-Werror -Wmissing-prototypes' the pthread test code check fails with error: "src.c:3:7: error: no previous prototype for 'test_func' [-Werror=missing-prototypes]". Adding 'static' keyword to 'test_func' fixes it.
7.9 KiB
7.9 KiB