summaryrefslogtreecommitdiff
path: root/src/idle.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/idle.c')
-rw-r--r--src/idle.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/idle.c b/src/idle.c
index 24dfffbc6d..59868352d8 100644
--- a/src/idle.c
+++ b/src/idle.c
@@ -127,6 +127,7 @@ rt_err_t rt_thread_idle_delhook(void (*hook)(void))
#endif
+#ifdef RT_USING_HEAP
/* Return whether there is defunctional thread to be deleted. */
rt_inline int _has_defunct_thread(void)
{
@@ -140,6 +141,7 @@ rt_inline int _has_defunct_thread(void)
return l->next != l;
}
+#endif
/**
* @ingroup Thread