summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--c/src/tests/sptests/spsize/init.c8
-rw-r--r--testsuites/sptests/spsize/init.c8
2 files changed, 12 insertions, 4 deletions
diff --git a/c/src/tests/sptests/spsize/init.c b/c/src/tests/sptests/spsize/init.c
index d0d5490966..eed2359596 100644
--- a/c/src/tests/sptests/spsize/init.c
+++ b/c/src/tests/sptests/spsize/init.c
@@ -25,6 +25,8 @@
#define TEST_INIT
#include "system.h"
+/* #define HAVE_MENU */
+
rtems_task Test_task();
void size_rtems( int mode );
@@ -32,7 +34,9 @@ rtems_task Init(
rtems_task_argument argument
)
{
- int choice;
+#if defined(HAVE_MENU)
+ int choice = 0;
+#endif
setvbuf(stdout, 0, _IONBF, 0);
@@ -40,7 +44,7 @@ rtems_task Init(
size_rtems( 1 );
puts( "*** END OF RTEMS SIZE PROGRAM ***" );
exit( 0 );
-#if 0
+#if defined(HAVE_MENU)
do {
printf( "\n\nPlease select program mode:\n" );
printf( " 1) Print Formulas\n" );
diff --git a/testsuites/sptests/spsize/init.c b/testsuites/sptests/spsize/init.c
index d0d5490966..eed2359596 100644
--- a/testsuites/sptests/spsize/init.c
+++ b/testsuites/sptests/spsize/init.c
@@ -25,6 +25,8 @@
#define TEST_INIT
#include "system.h"
+/* #define HAVE_MENU */
+
rtems_task Test_task();
void size_rtems( int mode );
@@ -32,7 +34,9 @@ rtems_task Init(
rtems_task_argument argument
)
{
- int choice;
+#if defined(HAVE_MENU)
+ int choice = 0;
+#endif
setvbuf(stdout, 0, _IONBF, 0);
@@ -40,7 +44,7 @@ rtems_task Init(
size_rtems( 1 );
puts( "*** END OF RTEMS SIZE PROGRAM ***" );
exit( 0 );
-#if 0
+#if defined(HAVE_MENU)
do {
printf( "\n\nPlease select program mode:\n" );
printf( " 1) Print Formulas\n" );