summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorRobb Matzke <matzke@llnl.gov>1999-03-01 19:44:32 (GMT)
committerRobb Matzke <matzke@llnl.gov>1999-03-01 19:44:32 (GMT)
commitb3ddd2cc5428b052ca26b36634b64be21032a330 (patch)
treed29670f49933b5259ca1cfd2a959f336ccb4bf5d /test
parent90d07791d37f965638b96eb2b4ad48b60708a9dc (diff)
downloadhdf5-b3ddd2cc5428b052ca26b36634b64be21032a330.zip
hdf5-b3ddd2cc5428b052ca26b36634b64be21032a330.tar.gz
hdf5-b3ddd2cc5428b052ca26b36634b64be21032a330.tar.bz2
[svn-r1110] Changes since 19990226
---------------------- ./INSTALL Added instructions for using other compilers on Irix platforms. ./configure.in ./configure [REGENERATED] ./src/H5config.h.in [REGENERATED] ./src/H5private.h The presence of <sys/sysinfo.h> and <sys/proc.h> is only checked on DEC/Alpha because there are too many problems including these headers on other systems. ./config/irix6.x ./config/irix64 Removed `-ansi' and added a comment. Converting an ASCII UTC date and time to a time_t value is not defined by ANSI or Posix but is available if we don't use `-ansi'. This allows the dataset modification time messages to be read properly by H5Gget_objinfo(). ./src/H5Tconv.c Fixed a compiler warning. ./test/dtypes.c ./test/hyperslab.c ./test/istore.c Fixed compiler warnings in printf() statements.
Diffstat (limited to 'test')
-rw-r--r--test/dtypes.c18
-rw-r--r--test/hyperslab.c19
-rw-r--r--test/istore.c6
3 files changed, 28 insertions, 15 deletions
diff --git a/test/dtypes.c b/test/dtypes.c
index 0047560..04e5737 100644
--- a/test/dtypes.c
+++ b/test/dtypes.c
@@ -2088,7 +2088,8 @@ test_conv_int_1(const char *name, hid_t src, hid_t dst)
for (k=0; k<src_size; k++) {
printf(" %02x", saved[j*src_size+ENDIAN(src_size, k)]);
}
- printf("%*s", 3*MAX(0, (ssize_t)dst_size-(ssize_t)src_size), "");
+ printf("%*s", (int)(3*MAX(0, (ssize_t)dst_size-(ssize_t)src_size)),
+ "");
switch (src_type) {
case INT_CHAR:
memcpy(aligned, saved+j*sizeof(char), sizeof(signed char));
@@ -2141,7 +2142,8 @@ test_conv_int_1(const char *name, hid_t src, hid_t dst)
for (k=0; k<dst_size; k++) {
printf(" %02x", buf[j*dst_size+ENDIAN(dst_size, k)]);
}
- printf("%*s", 3*MAX(0, (ssize_t)src_size-(ssize_t)dst_size), "");
+ printf("%*s", (int)(3*MAX(0, (ssize_t)src_size-(ssize_t)dst_size)),
+ "");
switch (dst_type) {
case INT_CHAR:
memcpy(aligned, saved+j*sizeof(char), sizeof(signed char));
@@ -2193,7 +2195,8 @@ test_conv_int_1(const char *name, hid_t src, hid_t dst)
for (k=0; k<dst_size; k++) {
printf(" %02x", hw[ENDIAN(dst_size, k)]);
}
- printf("%*s", 3*MAX(0, (ssize_t)src_size-(ssize_t)dst_size), "");
+ printf("%*s", (int)(3*MAX(0, (ssize_t)src_size-(ssize_t)dst_size)),
+ "");
switch (dst_type) {
case INT_CHAR:
printf(" %29d\n", *((signed char*)hw));
@@ -2656,7 +2659,8 @@ test_conv_flt_1 (const char *name, hid_t src, hid_t dst)
for (k=0; k<src_size; k++) {
printf(" %02x", saved[j*src_size+ENDIAN(src_size,k)]);
}
- printf("%*s", 3*MAX(0, (ssize_t)dst_size-(ssize_t)src_size), "");
+ printf("%*s", (int)(3*MAX(0, (ssize_t)dst_size-(ssize_t)src_size)),
+ "");
if (FLT_FLOAT==src_type) {
float x;
memcpy(&x, (float*)saved+j, sizeof(float));
@@ -2677,7 +2681,8 @@ test_conv_flt_1 (const char *name, hid_t src, hid_t dst)
for (k=0; k<dst_size; k++) {
printf(" %02x", buf[j*dst_size+ENDIAN(dst_size,k)]);
}
- printf("%*s", 3*MAX(0, (ssize_t)src_size-(ssize_t)dst_size), "");
+ printf("%*s", (int)(3*MAX(0, (ssize_t)src_size-(ssize_t)dst_size)),
+ "");
if (FLT_FLOAT==dst_type) {
float x;
memcpy(&x, (float*)buf+j, sizeof(float));
@@ -2698,7 +2703,8 @@ test_conv_flt_1 (const char *name, hid_t src, hid_t dst)
for (k=0; k<dst_size; k++) {
printf(" %02x", hw[ENDIAN(dst_size,k)]);
}
- printf("%*s", 3*MAX(0, (ssize_t)src_size-(ssize_t)dst_size), "");
+ printf("%*s", (int)(3*MAX(0, (ssize_t)src_size-(ssize_t)dst_size)),
+ "");
if (FLT_FLOAT==dst_type) {
printf(" %29.20e\n", hw_f);
} else if (FLT_DOUBLE==dst_type) {
diff --git a/test/hyperslab.c b/test/hyperslab.c
index 01e092c..8b226a6 100644
--- a/test/hyperslab.c
+++ b/test/hyperslab.c
@@ -81,14 +81,14 @@ print_array(uint8_t *array, size_t nx, size_t ny, size_t nz)
for (i=0; i<nx; i++) {
if (nz>1) {
- printf("i=%d:\n", i);
+ printf("i=%lu:\n", (unsigned long)i);
} else {
- printf("%03d:", i);
+ printf("%03lu:", (unsigned long)i);
}
for (j=0; j<ny; j++) {
if (nz>1)
- printf("%03d:", j);
+ printf("%03lu:", (unsigned long)j);
for (k=0; k<nz; k++) {
printf(" %3d", *array++);
}
@@ -253,9 +253,16 @@ test_fill(size_t nx, size_t ny, size_t nz,
*/
AT();
printf(" acc != ref_value\n");
- printf(" i=%d, j=%d, k=%d, "
- "dx=%d, dy=%d, dz=%d, fill=%d\n",
- i, j, k, dx, dy, dz, fill_value);
+ printf(" i=%lu, j=%lu, k=%lu, "
+ "dx=%lu, dy=%lu, dz=%lu, "
+ "fill=%d\n",
+ (unsigned long)i,
+ (unsigned long)j,
+ (unsigned long)k,
+ (unsigned long)dx,
+ (unsigned long)dy,
+ (unsigned long)dz,
+ fill_value);
print_ref(nx, ny, nz);
printf("\n Result is:\n");
print_array(dst, nx, ny, nz);
diff --git a/test/istore.c b/test/istore.c
index 0bd1c90..c840a1f 100644
--- a/test/istore.c
+++ b/test/istore.c
@@ -53,14 +53,14 @@ print_array(uint8_t *array, size_t nx, size_t ny, size_t nz)
for (i = 0; i < nx; i++) {
if (nz > 1) {
- printf("i=%d:\n", i);
+ printf("i=%lu:\n", (unsigned long)i);
} else {
- printf("%03d:", i);
+ printf("%03lu:", (unsigned long)i);
}
for (j = 0; j < ny; j++) {
if (nz > 1)
- printf("%03d:", j);
+ printf("%03lu:", (unsigned long)j);
for (k = 0; k < nz; k++) {
printf(" %3d", *array++);
}