summaryrefslogtreecommitdiff
path: root/orc-test
diff options
context:
space:
mode:
authorDoug Nazar <nazard@nazar.ca>2019-08-18 11:47:06 -0400
committerDoug Nazar <nazard@nazar.ca>2019-08-18 11:47:06 -0400
commitb1e710df404ae857ee1386d5fe9fd6f63ac61588 (patch)
tree6d1a5bd387a5d63c0434a6f66d40c620bf5c971f /orc-test
parent7623030fa2a7994e91524201497a1e076edc0790 (diff)
orctest: print_array_val_float return value not used
Diffstat (limited to 'orc-test')
-rw-r--r--orc-test/orctest.c13
1 files changed, 5 insertions, 8 deletions
diff --git a/orc-test/orctest.c b/orc-test/orctest.c
index 54658bc..6f6d6d5 100644
--- a/orc-test/orctest.c
+++ b/orc-test/orctest.c
@@ -488,7 +488,7 @@ print_array_val_hex (OrcArray *array, int i, int j)
}
}
-static orc_uint64
+static void
print_array_val_float (OrcArray *array, int i, int j)
{
void *ptr = ORC_PTR_OFFSET (array->data,
@@ -498,18 +498,15 @@ print_array_val_float (OrcArray *array, int i, int j)
case 4:
if (isnan(*(float *)ptr)) {
printf(" nan %08x", *(orc_uint32 *)ptr);
- /* This is to get around signaling/non-signaling nans in the output */
- return (*(orc_uint32 *)ptr) & 0xffbfffff;
} else {
printf(" %12.5g", *(float *)ptr);
- return *(orc_int32 *)ptr;
}
+ break;
case 8:
printf(" %12.5g", *(double *)ptr);
- return *(orc_int64 *)ptr;
+ break;
default:
printf(" ERROR");
- return -1;
}
}
@@ -724,8 +721,8 @@ orc_test_compare_output_full (OrcProgram *program, int flags)
for(l=ORC_VAR_D1;l<ORC_VAR_D1+4;l++){
if (program->vars[l].size > 0) {
if (flags & ORC_TEST_FLAGS_FLOAT) {
- a = print_array_val_float (dest_emul[l-ORC_VAR_D1], i, j);
- b = print_array_val_float (dest_exec[l-ORC_VAR_D1], i, j);
+ print_array_val_float (dest_emul[l-ORC_VAR_D1], i, j);
+ print_array_val_float (dest_exec[l-ORC_VAR_D1], i, j);
if (!float_compare (dest_emul[l-ORC_VAR_D1], dest_exec[l-ORC_VAR_D1], i, j)) {
line_bad = TRUE;
}