summaryrefslogtreecommitdiffstats
path: root/cpukit/sapi
diff options
context:
space:
mode:
Diffstat (limited to 'cpukit/sapi')
-rw-r--r--cpukit/sapi/include/confdefs.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/cpukit/sapi/include/confdefs.h b/cpukit/sapi/include/confdefs.h
index 6a3df813c8..9d1bee2674 100644
--- a/cpukit/sapi/include/confdefs.h
+++ b/cpukit/sapi/include/confdefs.h
@@ -323,6 +323,14 @@ rtems_fs_init_functions_t rtems_fs_init_helper =
#elif (CPU_PROVIDES_IDLE_THREAD_BODY == TRUE)
#define CONFIGURE_IDLE_TASK_BODY _CPU_Thread_Idle_body
#else
+ /* only instantiate and compile if used */
+ #ifdef CONFIGURE_INIT
+ void *_Thread_Idle_body(uintptr_t ignored)
+ {
+ for( ; ; ) ;
+ return 0; /* to avoid warning */
+ }
+ #endif
#define CONFIGURE_IDLE_TASK_BODY _Thread_Idle_body
#endif
#endif