summaryrefslogtreecommitdiffstats
path: root/test/dsets.c
diff options
context:
space:
mode:
authorQuincey Koziol <koziol@hdfgroup.org>2011-04-12 16:59:33 (GMT)
committerQuincey Koziol <koziol@hdfgroup.org>2011-04-12 16:59:33 (GMT)
commite4c6ef2f06a9e85ab7485eaab6b4b5fad699c8e3 (patch)
tree51db953096306b494651d0c794e5110a98d96259 /test/dsets.c
parent9af7a65b4fb46cb61df85eeff49a3ba0f018d863 (diff)
downloadhdf5-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/dsets.c')
-rw-r--r--test/dsets.c8
1 files changed, 4 insertions, 4 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 */