diff options
| author | [email protected] <[email protected]> | 2012-12-29 12:29:03 +0000 |
|---|---|---|
| committer | [email protected] <[email protected]> | 2012-12-29 12:29:03 +0000 |
| commit | 975610477e9b168858f90cc399d91eb962072f1d (patch) | |
| tree | b4b9dab47aea9f00c3b89291e030567331fee572 /src/idle.c | |
| parent | 7db8d2939bf9833587fcff84f040a8e4f9410e6f (diff) | |
Add RT_USING_MEMHEAP_AS_HEAP feature: system can use "heap" memheap as system default memory heap.
git-svn-id: https://rt-thread.googlecode.com/svn/trunk@2554 bbd45198-f89e-11dd-88c7-29a3b14d5316
Diffstat (limited to 'src/idle.c')
| -rw-r--r-- | src/idle.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/idle.c b/src/idle.c index 083b180fe6..f03b53724d 100644 --- a/src/idle.c +++ b/src/idle.c @@ -11,6 +11,7 @@ * Date Author Notes * 2006-03-23 Bernard the first version * 2010-11-10 Bernard add cleanup callback function in thread exit. + * 2012-12-29 Bernard fix compiling warning. */ #include <rthw.h> @@ -46,7 +47,7 @@ static void (*rt_thread_idle_hook)(); * * @note the hook function must be simple and never be blocked or suspend. */ -void rt_thread_idle_sethook(void (*hook)()) +void rt_thread_idle_sethook(void (*hook)(void)) { rt_thread_idle_hook = hook; } |
