mirror of
https://github.com/HDFGroup/hdf5.git
synced 2025-01-30 15:32:37 +08:00
[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:
parent
40bf5deddd
commit
6589650eea
@ -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);
|
||||
|
@ -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"));
|
||||
|
@ -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])) {
|
||||
|
Loading…
Reference in New Issue
Block a user