mirror of
https://gitee.com/zyjblog/oatpp.git
synced 2024-12-22 22:16:37 +08:00
Merge pull request #790 from fhuberts/fix-Wmissing-declarations
Fix compiler warnings (-Wmissing-declarations)
This commit is contained in:
commit
b63ef6849d
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user