Explorar o código

[C++] Fix the compiling warning issue

BernardXiong %!s(int64=7) %!d(string=hai) anos
pai
achega
3f931c0df4
Modificáronse 1 ficheiros con 2 adicións e 2 borrados
  1. 2 2
      components/cplusplus/Thread.cpp

+ 2 - 2
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);