summaryrefslogtreecommitdiffstats
path: root/c/src/tests/sptests
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>1997-04-07 21:31:39 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>1997-04-07 21:31:39 +0000
commit1c666fcea11eb898d2414564651ff68e0f13ca89 (patch)
treed7f3bb5ee587b6323f3c80a24071f431e2805cf3 /c/src/tests/sptests
parent9ffcaa4a8af41f7c6f51dc338072fdd031e83ddc (diff)
downloadrtems-1c666fcea11eb898d2414564651ff68e0f13ca89.tar.bz2
corrected integer only definitions of "FP CHECK" routines to eliminate
warnings.
Diffstat (limited to 'c/src/tests/sptests')
-rw-r--r--c/src/tests/sptests/sp19/fptest.h13
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