处理编译警告
This commit is contained in:
1 parent
1f345bd81f
commit
fb4549082c
8 files changed
+11
-10
No files matched your search
@@ -34,7 +34,7 @@
|
||||
#define RTC_AUTO_SYNC_PERIOD 3600
|
||||
#endif
|
||||
|
||||
static struct rt_work rtc_sync_work;
|
||||
static struct rt_work rtc_sync_work __attribute__((unused));
|
||||
static rt_device_t source_device = RT_NULL;
|
||||
|
||||
static struct rt_device soft_rtc_dev;
|
||||
|
||||
@@ -144,7 +144,7 @@ rt_bool_t rt_sched_is_locked(void);
|
||||
* NOTE: user should NEVER use these APIs directly. See rt_thread_.* or IPC
|
||||
* methods instead.
|
||||
*/
|
||||
#if defined(__RT_KERNEL_SOURCE__) || defined(__RT_IPC_SOURCE__)
|
||||
//#if defined(__RT_KERNEL_SOURCE__) || defined(__RT_IPC_SOURCE__)
|
||||
|
||||
/* thread initialization and startup routine */
|
||||
void rt_sched_thread_init_ctx(struct rt_thread *thread, rt_uint32_t tick, rt_uint8_t priority);
|
||||
@@ -171,7 +171,7 @@ rt_err_t rt_sched_thread_timer_start(struct rt_thread *thread);
|
||||
void rt_sched_insert_thread(struct rt_thread *thread);
|
||||
void rt_sched_remove_thread(struct rt_thread *thread);
|
||||
|
||||
#endif /* defined(__RT_KERNEL_SOURCE__) || defined(__RT_IPC_SOURCE__) */
|
||||
//#endif /* defined(__RT_KERNEL_SOURCE__) || defined(__RT_IPC_SOURCE__) */
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
|
||||
@@ -22,6 +22,7 @@
|
||||
#include <rthw.h>
|
||||
#include <rtthread.h>
|
||||
#include <rtatomic.h>
|
||||
#include <rtservice.h>
|
||||
|
||||
#ifdef RT_USING_SMP
|
||||
#define rt_tick rt_cpu_index(0)->tick
|
||||
|
||||
Reference in new issue
Block a user