From 2b9fd9273594178a340ea3f5bc85253f404649bb Mon Sep 17 00:00:00 2001 From: Ferry Huberts Date: Sat, 22 Jul 2023 21:07:05 +0200 Subject: [PATCH] Fix compiler warnings (-Wmissing-declarations) Signed-off-by: Ferry Huberts --- src/oatpp/core/concurrency/Thread.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/oatpp/core/concurrency/Thread.cpp b/src/oatpp/core/concurrency/Thread.cpp index d2e575ec..ec37be9e 100644 --- a/src/oatpp/core/concurrency/Thread.cpp +++ b/src/oatpp/core/concurrency/Thread.cpp @@ -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) {