corrected integer only definitions of "FP CHECK" routines to eliminate

warnings.
This commit is contained in:
Joel Sherrill
1997-04-07 21:31:39 +00:00
parent 9ffcaa4a8a
commit 1c666fcea1
2 changed files with 20 additions and 6 deletions

View File

@@ -37,9 +37,16 @@
#if ( RTEMS_HAS_HARDWARE_FP == FALSE )
#define FP_DECLARE ;
#define FP_LOAD( _factor )
#define FP_CHECK( _factor ) 0
/*
* The following is useless except to avoid some warnings.
*/
#define FP_DECLARE unsigned int fp01 = 0;
#define FP_LOAD( _factor ) fp01 = 2;
#define FP_CHECK( _factor ) \
if ( fp01 != 2 ) \
printf("%d: single integer is wrong -- (%d != 2) \n", \
task_index, fp01 ); \
#else

View File

@@ -37,9 +37,16 @@
#if ( RTEMS_HAS_HARDWARE_FP == FALSE )
#define FP_DECLARE ;
#define FP_LOAD( _factor )
#define FP_CHECK( _factor ) 0
/*
* The following is useless except to avoid some warnings.
*/
#define FP_DECLARE unsigned int fp01 = 0;
#define FP_LOAD( _factor ) fp01 = 2;
#define FP_CHECK( _factor ) \
if ( fp01 != 2 ) \
printf("%d: single integer is wrong -- (%d != 2) \n", \
task_index, fp01 ); \
#else