summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorheyuanjie87 <[email protected]>2024-08-30 19:56:58 +0800
committerRbb666 <[email protected]>2024-10-21 13:05:08 +0800
commit063e6e7c0c799052b034db4aa6774a7037e11e3a (patch)
tree68a7a8d520ddd551e1d2e4ea8475db5b84dc80ac /src
parent1045bcb9df3a946188490b7e18835be3209d9715 (diff)
解决编译警告
Diffstat (limited to 'src')
-rw-r--r--src/defunct.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/defunct.c b/src/defunct.c
index ce696f8325..2af8046855 100644
--- a/src/defunct.c
+++ b/src/defunct.c
@@ -17,9 +17,9 @@
#endif
static rt_list_t _rt_thread_defunct = RT_LIST_OBJECT_INIT(_rt_thread_defunct);
static struct rt_spinlock _defunct_spinlock;
+#if defined(RT_USING_SMP) || defined(RT_USING_SMART)
static struct rt_thread rt_system_thread;
rt_align(RT_ALIGN_SIZE) static rt_uint8_t rt_system_stack[SYSTEM_THREAD_STACK_SIZE];
-#if defined(RT_USING_SMP) || defined(RT_USING_SMART)
static struct rt_semaphore system_sem;
#endif