Merge pull request #301 from grissiom/fix-timer

[Kernel] src/timer: fix a compile warning
This commit is contained in:
Bernard Xiong 2014-07-17 13:33:02 +08:00
commit fc6747ef6c
1 changed files with 1 additions and 1 deletions

View File

@ -130,6 +130,7 @@ rt_inline void _rt_timer_remove(rt_timer_t timer)
} }
} }
#if RT_DEBUG_TIMER
static int rt_timer_count_height(struct rt_timer *timer) static int rt_timer_count_height(struct rt_timer *timer)
{ {
int i, cnt = 0; int i, cnt = 0;
@ -142,7 +143,6 @@ static int rt_timer_count_height(struct rt_timer *timer)
return cnt; return cnt;
} }
#if RT_DEBUG_TIMER
void rt_timer_dump(rt_list_t timer_heads[]) void rt_timer_dump(rt_list_t timer_heads[])
{ {
rt_list_t *list; rt_list_t *list;