Merge pull request #790 from fhuberts/fix-Wmissing-declarations

Fix compiler warnings (-Wmissing-declarations)
This commit is contained in:
Leonid Stryzhevskyi 2023-07-24 01:15:21 +03:00 committed by GitHub
commit b63ef6849d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -74,7 +74,7 @@ v_int32 setThreadAffinityToCpuRange(std::thread::native_handle_type nativeHandle
#endif
}
v_int32 calcHardwareConcurrency() {
static v_int32 calcHardwareConcurrency() {
#if !defined(OATPP_THREAD_HARDWARE_CONCURRENCY)
v_int32 concurrency = std::thread::hardware_concurrency();
if(concurrency == 0) {