From 112b14b564d27525254623ecb94b2120c2c0996f Mon Sep 17 00:00:00 2001 From: Caio Oliveira Date: Wed, 17 Dec 2025 21:46:22 -0300 Subject: [PATCH] [chore] fix build errors Signed-off-by: Caio Oliveira --- src/common/thread.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/common/thread.cpp b/src/common/thread.cpp index 465ee64d11..25bdd7aef3 100644 --- a/src/common/thread.cpp +++ b/src/common/thread.cpp @@ -6,8 +6,6 @@ #include #include -#include -#include #include "common/error.h" #include "common/logging/log.h" @@ -22,6 +20,8 @@ #include "common/string_util.h" #else #if defined(__Bitrig__) || defined(__DragonFly__) || defined(__FreeBSD__) || defined(__OpenBSD__) +#include +#include #include #endif #include @@ -118,7 +118,7 @@ void SetCurrentThreadName(const char* name) { } void PinCurrentThreadToPerformanceCore(size_t core_id) { - ASSERT(core_id >= 0 && core_id < 4); + ASSERT(core_id < 4); // If we set a flag for a CPU that doesn't exist, the thread may not be allowed to // run in ANY processor! auto const total_cores = std::thread::hardware_concurrency();