From 30d68a515cf459856761325ef75b938da621a48d Mon Sep 17 00:00:00 2001 From: Grissiom Date: Wed, 16 Jul 2014 22:05:02 +0800 Subject: [PATCH] src/timer: fix a compile warning --- src/timer.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/timer.c b/src/timer.c index 9785403d8b..f71e40fcd6 100644 --- a/src/timer.c +++ b/src/timer.c @@ -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) { int i, cnt = 0; @@ -142,7 +143,6 @@ static int rt_timer_count_height(struct rt_timer *timer) return cnt; } -#if RT_DEBUG_TIMER void rt_timer_dump(rt_list_t timer_heads[]) { rt_list_t *list;