summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorQuincey Koziol <koziol@hdfgroup.org>2005-04-18 21:21:35 (GMT)
committerQuincey Koziol <koziol@hdfgroup.org>2005-04-18 21:21:35 (GMT)
commitaf6276f6543d06c9f18939cc8b810f57397b7a67 (patch)
treeef2c50b7bd22d0967fdab6075864577746e4b147 /test
parentd8b08dbc85dfe28d926caf3c03e9d60c63d80794 (diff)
downloadhdf5-af6276f6543d06c9f18939cc8b810f57397b7a67.zip
hdf5-af6276f6543d06c9f18939cc8b810f57397b7a67.tar.gz
hdf5-af6276f6543d06c9f18939cc8b810f57397b7a67.tar.bz2
[svn-r10628] Purpose:
Code cleanup Description: Clean up various warnings reported by the Windows team. Platforms tested: FreeBSD 4.11 (sleipnir) Too minor to require h5committest
Diffstat (limited to 'test')
-rw-r--r--test/dt_atomic.c12
-rw-r--r--test/hyperslab.c6
2 files changed, 9 insertions, 9 deletions
diff --git a/test/dt_atomic.c b/test/dt_atomic.c
index db8234e..7348a9f 100644
--- a/test/dt_atomic.c
+++ b/test/dt_atomic.c
@@ -1331,7 +1331,7 @@ test_conv_int_1(const char *name, hid_t src, hid_t dst)
size_t src_size, dst_size; /*type sizes */
unsigned char *buf=NULL; /*buffer for conversion */
unsigned char *saved=NULL; /*original values */
- size_t i, j, k; /*counters */
+ size_t j, k; /*counters */
unsigned char *hw=NULL; /*hardware conv result */
unsigned char src_bits[32]; /*src value in LE order */
unsigned char dst_bits[32]; /*dest value in LE order*/
@@ -2066,7 +2066,7 @@ test_conv_int_1(const char *name, hid_t src, hid_t dst)
/* Print errors */
if (0==fails_this_test++)
H5_FAILED();
- printf(" test %u elmt %u\n", (unsigned)i+1, (unsigned)j);
+ printf(" elmt %u\n", (unsigned)j);
printf(" src = ");
for (k=0; k<src_size; k++)
@@ -2397,7 +2397,7 @@ test_conv_flt_1 (const char *name, hbool_t run_special, hid_t src, hid_t dst)
unsigned char *hw=NULL; /*ptr to hardware-conv'd*/
int underflow; /*underflow occurred */
int uflow=0; /*underflow debug counters*/
- size_t i, j, k; /*counters */
+ size_t j, k; /*counters */
int endian; /*machine endianess */
size_t dst_ebias; /* Destination type's exponent bias */
size_t src_epos; /* Source type's exponent position */
@@ -2777,7 +2777,7 @@ test_conv_flt_1 (const char *name, hbool_t run_special, hid_t src, hid_t dst)
if (0==fails_this_test++)
H5_FAILED();
- printf(" test %u, elmt %u\n", (unsigned)i+1, (unsigned)j);
+ printf(" elmt %u\n", (unsigned)j);
printf(" src =");
for (k=0; k<src_size; k++)
@@ -2912,7 +2912,7 @@ test_conv_int_fp(const char *name, hbool_t run_special, hid_t src, hid_t dst)
size_t src_size, dst_size; /*type sizes */
unsigned char *buf=NULL; /*buffer for conversion */
unsigned char *saved=NULL; /*original values */
- size_t i, j, k; /*counters */
+ size_t j, k; /*counters */
unsigned char *hw=NULL; /*hardware conv result */
unsigned char src_bits[32]; /*src value in LE order */
unsigned char dst_bits[32]; /*dest value in LE order*/
@@ -3687,7 +3687,7 @@ test_conv_int_fp(const char *name, hbool_t run_special, hid_t src, hid_t dst)
/* Print errors */
if (0==fails_this_test++)
H5_FAILED();
- printf(" test %u elmt %u: \n", (unsigned)i+1, (unsigned)j);
+ printf(" elmt %u: \n", (unsigned)j);
printf(" src = ");
for (k=0; k<src_size; k++)
diff --git a/test/hyperslab.c b/test/hyperslab.c
index 59a9e08..75118d3 100644
--- a/test/hyperslab.c
+++ b/test/hyperslab.c
@@ -221,13 +221,13 @@ test_fill(size_t nx, size_t ny, size_t nz,
* original * fill values and add the new ones.
*/
ref_value = init_full(dst, nx, ny, nz);
- for (u=dst_offset[0];
+ for (u=(size_t)dst_offset[0];
u<dst_offset[0]+dx;
u++) {
- for (v = dst_offset[1];
+ for (v = (size_t)dst_offset[1];
v < dst_offset[1] + dy;
v++) {
- for (w = dst_offset[2];
+ for (w = (size_t)dst_offset[2];
w < dst_offset[2] + dz;
w++) {
ref_value -= dst[u*ny*nz+v*nz+w];