summaryrefslogtreecommitdiffstats
path: root/misc
diff options
context:
space:
mode:
authorJoel Sherrill <joel@rtems.org>2022-02-23 16:16:20 -0600
committerJoel Sherrill <joel@rtems.org>2022-02-23 16:17:54 -0600
commit43702c8507591bbb95d5648b606a3f6091a5cacf (patch)
tree69600fe54f56310d46abce1242ed6d3f238b2f8b /misc
parentclassic_api/classic_signal: Fix warnings (diff)
downloadrtems-examples-43702c8507591bbb95d5648b606a3f6091a5cacf.tar.bz2
misc/minimum/: Fix warnings
Diffstat (limited to 'misc')
-rw-r--r--misc/minimum/test.c11
1 files changed, 8 insertions, 3 deletions
diff --git a/misc/minimum/test.c b/misc/minimum/test.c
index 729ed3a..5ff91cb 100644
--- a/misc/minimum/test.c
+++ b/misc/minimum/test.c
@@ -16,9 +16,12 @@ void *Init(
{
/* initialize application */
- /* Real application would call idle loop functionality */
+ /* Real application must do at least this */
+ while (1) {
+ ;
+ }
- /* but in this case, just return and fall into a fatal error */
+ return NULL;
}
/* configuration information */
@@ -65,7 +68,9 @@ void *Init(
* per Task Control Block. If you aren't using these and are tight
* on RAM, this is an option.
*/
+#if (__RTEMS_MAJOR__ < 5)
#define CONFIGURE_DISABLE_CLASSIC_API_NOTEPADS
+#endif
/*
* This configures RTEMS to use a single memory pool for the RTEMS Workspace
@@ -86,7 +91,7 @@ void *Init(
* In this application, the initialization task performs the system
* initialization and then transforms itself into the idle task.
*/
-#define CONFIGURE_IDLE_TASK_BODY Init
+#define CONFIGURE_IDLE_TASK_BODY (Thread_Idle_body) Init
#define CONFIGURE_IDLE_TASK_INITIALIZES_APPLICATION
/*