From 83a4e723bfc4c8d496ee138b719de1f321666f46 Mon Sep 17 00:00:00 2001 From: Mikhail Romanko Date: Mon, 3 Mar 2025 12:03:26 +0300 Subject: Fix build error on Linux/POSIX --- CMakeLists.txt | 2 +- src/Platform/Posix/Thread.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index ba98e42..bc58de1 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -180,7 +180,7 @@ elseif(UNIX) message(STATUS "Platform: Unix (Linux/BSD/MacOS X)") # Add platform dependent files - list(APPEND BH_SOURCE BH_SOURCE_POSIX) + list(APPEND BH_SOURCE ${BH_SOURCE_POSIX}) # Add platform dependent multithreading support if(ENABLE_MT) diff --git a/src/Platform/Posix/Thread.c b/src/Platform/Posix/Thread.c index 62635f0..21a0b14 100644 --- a/src/Platform/Posix/Thread.c +++ b/src/Platform/Posix/Thread.c @@ -14,7 +14,7 @@ struct BH_ThreadContext static void *BH_ThreadRun(void *context) { BH_ThreadCallback callback; - void *data, *result; + void *data; callback = ((struct BH_ThreadContext *)context)->callback; data = ((struct BH_ThreadContext *)context)->data; -- cgit v1.2.3