diff options
author | Quincey Koziol <koziol@hdfgroup.org> | 2011-04-12 16:59:33 (GMT) |
---|---|---|
committer | Quincey Koziol <koziol@hdfgroup.org> | 2011-04-12 16:59:33 (GMT) |
commit | e4c6ef2f06a9e85ab7485eaab6b4b5fad699c8e3 (patch) | |
tree | 51db953096306b494651d0c794e5110a98d96259 /test | |
parent | 9af7a65b4fb46cb61df85eeff49a3ba0f018d863 (diff) | |
download | hdf5-e4c6ef2f06a9e85ab7485eaab6b4b5fad699c8e3.zip hdf5-e4c6ef2f06a9e85ab7485eaab6b4b5fad699c8e3.tar.gz hdf5-e4c6ef2f06a9e85ab7485eaab6b4b5fad699c8e3.tar.bz2 |
[svn-r20480] Description:
Remove global variable for the path name in the group traversal code. Also
clean up a bunch of compiler warnings.
Tested on:
Mac OS X/32 10.6.7 (amazon) w/debug & production
FreeBSD/32 6.3 (duty) w/debug
FreeBSD/64 6.3 (liberty) w/debug
Solaris/32 2.7 (linew) w/debug
Diffstat (limited to 'test')
-rw-r--r-- | test/dsets.c | 8 | ||||
-rw-r--r-- | test/gen_filespace.c | 2 |
2 files changed, 5 insertions, 5 deletions
diff --git a/test/dsets.c b/test/dsets.c index b2b2521..c1cac47 100644 --- a/test/dsets.c +++ b/test/dsets.c @@ -4076,7 +4076,7 @@ test_nbit_int_size(hid_t file) */ if((precision = H5Tget_precision(datatype)) == 0) { H5_FAILED(); - printf(" Line %d: wrong precision size: %d\n",__LINE__, precision); + printf(" Line %d: wrong precision size: %zu\n",__LINE__, precision); goto error; } /* end if */ @@ -4086,7 +4086,7 @@ test_nbit_int_size(hid_t file) if((dset_size = H5Dget_storage_size(dataset)) < DSET_DIM1*DSET_DIM2*(precision/8) || dset_size > DSET_DIM1*DSET_DIM2*(precision/8) + 1*KB) { H5_FAILED(); - printf(" Line %d: wrong dataset size: %d\n",__LINE__, dset_size); + HDfprintf(stdout, " Line %d: wrong dataset size: %Hu\n",__LINE__, dset_size); goto error; } /* end if */ @@ -4283,7 +4283,7 @@ test_nbit_flt_size(hid_t file) */ if((precision = H5Tget_precision(datatype)) == 0) { H5_FAILED(); - printf(" Line %d: wrong precision size: %d\n",__LINE__, precision); + printf(" Line %d: wrong precision size: %zu\n",__LINE__, precision); goto error; } /* end if */ @@ -4293,7 +4293,7 @@ test_nbit_flt_size(hid_t file) if((dset_size = H5Dget_storage_size(dataset)) < DSET_DIM1*DSET_DIM2*(precision/8) || dset_size > DSET_DIM1*DSET_DIM2*(precision/8) + 1*KB) { H5_FAILED(); - printf(" Line %d: wrong dataset size: %d\n",__LINE__, dset_size); + HDfprintf(stdout, " Line %d: wrong dataset size: %Hu\n",__LINE__, dset_size); goto error; } /* end if */ diff --git a/test/gen_filespace.c b/test/gen_filespace.c index 293e3df..7ee2a7a 100644 --- a/test/gen_filespace.c +++ b/test/gen_filespace.c @@ -45,7 +45,7 @@ static void gen_file(void) unsigned i, j; /* Local index variable */ H5F_file_space_type_t fs_type; /* File space handling strategy */ - for(j = 0, fs_type = H5F_FILE_SPACE_ALL_PERSIST; j < NELMTS(FILENAMES); j++, (H5F_file_space_type_t)(fs_type)++) { + for(j = 0, fs_type = H5F_FILE_SPACE_ALL_PERSIST; j < NELMTS(FILENAMES); j++, fs_type = (H5F_file_space_type_t)(fs_type + 1)) { /* Get a copy of the default file creation property */ fcpl = H5Pcreate(H5P_FILE_CREATE); |