[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.
This commit is contained in:
Robb Matzke 1998-09-03 08:49:48 -05:00
parent 40bf5deddd
commit 6589650eea
3 changed files with 13 additions and 3 deletions

View File

@ -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);

View File

@ -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"));

View File

@ -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])) {