added ifdef to avoid warning for unused variable.

This commit is contained in:
Joel Sherrill
1997-04-07 21:31:59 +00:00
parent 1c666fcea1
commit de4f2810a7
2 changed files with 12 additions and 4 deletions
+6 -2
View File
@@ -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" );
+6 -2
View File
@@ -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" );