summaryrefslogtreecommitdiff
path: root/src/thread.c
diff options
context:
space:
mode:
author张世争 <[email protected]>2021-02-28 12:00:44 +0800
committer张世争 <[email protected]>2021-02-28 12:00:44 +0800
commit72d7f6c0adf6ef251e7662f09c9dd32579041a19 (patch)
treef33e37cbc2b0443ee3a182a511d012d42354c678 /src/thread.c
parent2bf53d315d62bd199c01fd2d6a7f05d1a6712153 (diff)
[update][kernel]规范rt_object_t强制转换的使用,消除上次提交的编译警告
Diffstat (limited to 'src/thread.c')
-rw-r--r--src/thread.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/src/thread.c b/src/thread.c
index 18b5227f5a..beef93f46a 100644
--- a/src/thread.c
+++ b/src/thread.c
@@ -358,8 +358,6 @@ RTM_EXPORT(rt_thread_startup);
*/
rt_err_t rt_thread_detach(rt_thread_t thread)
{
- rt_base_t lock;
-
/* thread check */
RT_ASSERT(thread != RT_NULL);
RT_ASSERT(rt_object_get_type((rt_object_t)thread) == RT_Object_Class_Thread);