summaryrefslogtreecommitdiffstats
path: root/c/src/tests
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>1997-04-07 21:31:59 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>1997-04-07 21:31:59 +0000
commitde4f2810a7e0f4547467eb635d5c53420948e1d2 (patch)
treef6a0ca2b7c00b386adc5e11427ff9ec90ef073b2 /c/src/tests
parentcorrected integer only definitions of "FP CHECK" routines to eliminate (diff)
downloadrtems-de4f2810a7e0f4547467eb635d5c53420948e1d2.tar.bz2
added ifdef to avoid warning for unused variable.
Diffstat (limited to 'c/src/tests')
-rw-r--r--c/src/tests/sptests/spsize/init.c8
1 files changed, 6 insertions, 2 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" );