summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRobb Matzke <matzke@llnl.gov>1998-09-03 13:49:48 (GMT)
committerRobb Matzke <matzke@llnl.gov>1998-09-03 13:49:48 (GMT)
commit6589650eeafe95ec499b9c370e2d55a8b185d6a0 (patch)
tree6dd790366e4ea9404061db17c12f593875da85a5
parent40bf5dedddaaaa666e7d747c664c7bc47bda40f3 (diff)
downloadhdf5-6589650eeafe95ec499b9c370e2d55a8b185d6a0.zip
hdf5-6589650eeafe95ec499b9c370e2d55a8b185d6a0.tar.gz
hdf5-6589650eeafe95ec499b9c370e2d55a8b185d6a0.tar.bz2
[svn-r658] Changes since 19980901
---------------------- ./test/dtypes.c Got rid of one of some of the `increases alignment' warnings. ./test/tselect.c Got rid of an unused variable.
-rw-r--r--test/dtypes.c13
-rw-r--r--test/tselect.c1
-rw-r--r--tools/h5repart.c2
3 files changed, 13 insertions, 3 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"));
diff --git a/tools/h5repart.c b/tools/h5repart.c
index 75dae80..03ef471 100644
--- a/tools/h5repart.c
+++ b/tools/h5repart.c
@@ -91,7 +91,7 @@ usage (const char *progname)
static off_t
get_size (const char *progname, int *argno, int argc, char *argv[])
{
- off_t retval;
+ off_t retval=-1;
char *suffix;
if (isdigit (argv[*argno][2])) {