summaryrefslogtreecommitdiffstats
path: root/tools/test
diff options
context:
space:
mode:
authorDana Robinson <derobins@hdfgroup.org>2020-04-27 15:50:27 (GMT)
committerDana Robinson <derobins@hdfgroup.org>2020-04-27 15:50:27 (GMT)
commitc03ee563f46013d22f36a1895664a9ba876558e9 (patch)
tree147990d80682a724e79481a9ddef1df3f157c259 /tools/test
parentde3bfa697a9fcb4fabf755b2bda7fa553abfcebb (diff)
downloadhdf5-c03ee563f46013d22f36a1895664a9ba876558e9.zip
hdf5-c03ee563f46013d22f36a1895664a9ba876558e9.tar.gz
hdf5-c03ee563f46013d22f36a1895664a9ba876558e9.tar.bz2
Further updates to the tools warnings fixes from code review.
Diffstat (limited to 'tools/test')
-rw-r--r--tools/test/misc/h5clear_gentest.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/tools/test/misc/h5clear_gentest.c b/tools/test/misc/h5clear_gentest.c
index 06ba473..8d6883c 100644
--- a/tools/test/misc/h5clear_gentest.c
+++ b/tools/test/misc/h5clear_gentest.c
@@ -62,6 +62,7 @@ gen_cache_image_file(const char *fname)
hid_t dcpl = H5I_INVALID_HID; /* Dataset creation property list */
hsize_t dims[2]; /* Dimension sizes */
hsize_t chunks[2]; /* Chunked dimension sizes */
+ int i, j; /* Local index variables */
int **buf = NULL; /* Buffer for data to write */
H5AC_cache_image_config_t cache_image_config = /* Cache image input configuration */
{ H5AC__CURR_CACHE_IMAGE_CONFIG_VERSION,
@@ -72,7 +73,9 @@ gen_cache_image_file(const char *fname)
H5TEST_ALLOCATE_2D_ARRAY(buf, int, 50, 100);
if (NULL == buf)
goto error;
- H5TEST_FILL_2D_ARRAY(buf, int, 50, 100);
+ for(i = 0; i < 50; i++)
+ for(j = 0; j < 100; j++)
+ buf[i][j] = i * j;
/* Create a copy of file access property list */
if((fapl = H5Pcreate(H5P_FILE_ACCESS)) < 0)