summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/dtypes.c13
-rw-r--r--test/tselect.c1
2 files changed, 12 insertions, 2 deletions
diff --git a/test/dtypes.c b/test/dtypes.c
index 7c9ba00..6949250 100644
--- a/test/dtypes.c
+++ b/test/dtypes.c
@@ -1391,11 +1391,22 @@ test_conv_flt_1 (const char *name, hid_t src, hid_t dst)
for (j=0; j<nelmts*src_size; j++) buf[j] = saved[j] = rand();
} else {
for (j=0; j<nelmts; j++) {
+#if 0
unsigned char temp[32];
+#else
+ /* Do it this way for alignment reasons */
+#ifdef USE_LDOUBLE
+ long double temp[1];
+#else
+ double temp[1];
+#endif
+#endif
if (src_size<=dst_size) {
for (k=0; k<dst_size; k++) buf[j*src_size+k] = rand();
} else {
- for (k=0; k<dst_size; k++) temp[k] = rand();
+ for (k=0; k<dst_size; k++) {
+ ((unsigned char*)temp)[k] = rand();
+ }
if (FLT_DOUBLE==src_type && FLT_FLOAT==dst_type) {
hw_d = *((float*)temp);
memcpy(buf+j*src_size, &hw_d, src_size);
diff --git a/test/tselect.c b/test/tselect.c
index e38bbda..db0782c 100644
--- a/test/tselect.c
+++ b/test/tselect.c
@@ -491,7 +491,6 @@ test_select_combo(void)
*tbuf2; /* temporary buffer pointer */
intn i,j; /* Counters */
herr_t ret; /* Generic return value */
-hbool_t valid; /* Generic boolean return value */
/* Output message about test being performed */
MESSAGE(5, ("Testing Combination of Hyperslab & Element Selection Functions\n"));