summaryrefslogtreecommitdiff
path: root/components/cplusplus/Thread.cpp
diff options
context:
space:
mode:
authorBernardXiong <[email protected]>2018-02-11 13:58:03 +0800
committerBernardXiong <[email protected]>2018-02-11 13:58:03 +0800
commit3f931c0df4bb38673c9689c6858f6c6bb299e860 (patch)
treeec61f460539a6496dca956cb9faba0e0b54cebfc /components/cplusplus/Thread.cpp
parent780c09e3e452568e7befb26c0ffd4ae7f6d1a0cb (diff)
[C++] Fix the compiling warning issue
Diffstat (limited to 'components/cplusplus/Thread.cpp')
-rw-r--r--components/cplusplus/Thread.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/components/cplusplus/Thread.cpp b/components/cplusplus/Thread.cpp
index 4d2d8a59ea..a01bd95e4b 100644
--- a/components/cplusplus/Thread.cpp
+++ b/components/cplusplus/Thread.cpp
@@ -6,7 +6,7 @@ Thread::Thread(rt_uint32_t stack_size,
rt_uint8_t priority,
rt_uint32_t tick,
const char *name)
-: _entry(RT_NULL), started(false)
+: _entry(RT_NULL), _param(RT_NULL), started(false)
{
rt_event_init(&_event, name, 0);
@@ -24,7 +24,7 @@ Thread::Thread(void (*entry)(void *p),
rt_uint8_t priority,
rt_uint32_t tick,
const char *name)
-: _entry(RT_NULL), started(false), _param(p)
+: _entry(RT_NULL), _param(p), started(false)
{
rt_event_init(&_event, name, 0);