diff options
author | Joel Sherrill <joel.sherrill@OARcorp.com> | 1997-04-07 21:31:39 +0000 |
---|---|---|
committer | Joel Sherrill <joel.sherrill@OARcorp.com> | 1997-04-07 21:31:39 +0000 |
commit | 1c666fcea11eb898d2414564651ff68e0f13ca89 (patch) | |
tree | d7f3bb5ee587b6323f3c80a24071f431e2805cf3 /c/src/tests | |
parent | changed signed int to unsigned int to eliminate a warning. (diff) | |
download | rtems-1c666fcea11eb898d2414564651ff68e0f13ca89.tar.bz2 |
corrected integer only definitions of "FP CHECK" routines to eliminate
warnings.
Diffstat (limited to 'c/src/tests')
-rw-r--r-- | c/src/tests/sptests/sp19/fptest.h | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/c/src/tests/sptests/sp19/fptest.h b/c/src/tests/sptests/sp19/fptest.h index a8f3a925cb..cbe5d194e2 100644 --- a/c/src/tests/sptests/sp19/fptest.h +++ b/c/src/tests/sptests/sp19/fptest.h @@ -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 |