diff options
author | Quincey Koziol <koziol@hdfgroup.org> | 2002-04-22 17:48:24 (GMT) |
---|---|---|
committer | Quincey Koziol <koziol@hdfgroup.org> | 2002-04-22 17:48:24 (GMT) |
commit | e5fc40662c6520edc50c7e68c96e24eb766972f2 (patch) | |
tree | c619f15e55b290c16fc082da15746864ba7c5b81 /test | |
parent | 7527ed7d6f3d122e2b00e919c4a8d993b1e196be (diff) | |
download | hdf5-e5fc40662c6520edc50c7e68c96e24eb766972f2.zip hdf5-e5fc40662c6520edc50c7e68c96e24eb766972f2.tar.gz hdf5-e5fc40662c6520edc50c7e68c96e24eb766972f2.tar.bz2 |
[svn-r5219] Purpose:
Code cleanup
Description:
Clean up warnings from gcc 3.1
Platforms tested:
FreeBSD 4.5 (sleipnir)
Diffstat (limited to 'test')
-rw-r--r-- | test/big.c | 6 | ||||
-rw-r--r-- | test/dsets.c | 4 | ||||
-rw-r--r-- | test/h5test.c | 2 |
3 files changed, 7 insertions, 5 deletions
@@ -25,7 +25,7 @@ const char *FILENAME[] = { #endif /* Protocols */ -void usage(void); +static void usage(void); /*------------------------------------------------------------------------- @@ -403,6 +403,7 @@ main (int ac, char **av) hid_t fapl=-1; hsize_t family_size; hsize_t family_size_def; /* default family file size */ + double family_size_def_dbl; /* default family file size */ int cflag=1; /* check file system before test */ /* parameters setup */ @@ -414,7 +415,8 @@ main (int ac, char **av) /* specify a different family file size */ ac--; av++; if (ac > 0){ - family_size_def = (hsize_t) atof(*av); + family_size_def_dbl = atof(*av); + H5_ASSIGN_OVERFLOW(family_size_def,family_size_def_dbl,double,hsize_t); if (family_size_def <= 0) family_size_def = (hsize_t)FAMILY_SIZE; } diff --git a/test/dsets.c b/test/dsets.c index 739af4a..fd3d479 100644 --- a/test/dsets.c +++ b/test/dsets.c @@ -332,8 +332,8 @@ test_tconv(hid_t file) */ static size_t bogus(unsigned int UNUSED flags, size_t UNUSED cd_nelmts, - const unsigned int * UNUSED cd_values, size_t nbytes, - size_t * UNUSED buf_size, void ** UNUSED buf) + const unsigned int UNUSED *cd_values, size_t nbytes, + size_t UNUSED *buf_size, void UNUSED **buf) { return nbytes; } diff --git a/test/h5test.c b/test/h5test.c index 08de54a..e0c46a6 100644 --- a/test/h5test.c +++ b/test/h5test.c @@ -92,7 +92,7 @@ static const char *multi_letters = "msbrglo"; *------------------------------------------------------------------------- */ herr_t -h5_errors(void * UNUSED client_data) +h5_errors(void UNUSED *client_data) { H5_FAILED(); H5Eprint (stdout); |