summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/big.c6
-rw-r--r--test/dsets.c4
-rw-r--r--test/h5test.c2
3 files changed, 7 insertions, 5 deletions
diff --git a/test/big.c b/test/big.c
index 2cb17d8..26a0269 100644
--- a/test/big.c
+++ b/test/big.c
@@ -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);