summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorQuincey Koziol <koziol@hdfgroup.org>2006-07-15 19:49:04 (GMT)
committerQuincey Koziol <koziol@hdfgroup.org>2006-07-15 19:49:04 (GMT)
commite9d6c992d638f25a461c65411678f5fac8282257 (patch)
tree5c714117d1d8997550d77997b85e5a6f8e401d13 /test
parentf9ac366dbd2c27c76048fe2619767943f860583b (diff)
downloadhdf5-e9d6c992d638f25a461c65411678f5fac8282257.zip
hdf5-e9d6c992d638f25a461c65411678f5fac8282257.tar.gz
hdf5-e9d6c992d638f25a461c65411678f5fac8282257.tar.bz2
[svn-r12474]
Clean up some compiler warnings. Tested on: FreeBSD 4.11 (sleipnir) Too minor to require h5committest
Diffstat (limited to 'test')
-rwxr-xr-xtest/cross_read.c5
-rw-r--r--test/enum.c3
-rw-r--r--test/fheap.c4
-rw-r--r--test/tarray.c1
-rw-r--r--test/tskiplist.c1
5 files changed, 5 insertions, 9 deletions
diff --git a/test/cross_read.c b/test/cross_read.c
index d24ffa9..bc41bb3 100755
--- a/test/cross_read.c
+++ b/test/cross_read.c
@@ -43,8 +43,7 @@ static int read_data(char *fname)
hid_t dt;
double data_in[NX][NY]; /* input buffer */
double data_out[NX][NY]; /* output buffer */
- int i, j, rank;
- herr_t status;
+ int i, j;
unsigned nerrors = 0;
pathname[0] = '\0';
@@ -153,7 +152,7 @@ int main(void)
nerrors += read_data(filename);
if (nerrors) {
- printf("***** %lu FAILURE%s! *****\n",
+ printf("***** %u FAILURE%s! *****\n",
nerrors, 1==nerrors?"":"S");
HDexit(1);
}
diff --git a/test/enum.c b/test/enum.c
index f626f5c..02cad81 100644
--- a/test/enum.c
+++ b/test/enum.c
@@ -445,9 +445,8 @@ test_value_dsnt_exist(void)
static int
test_funcs(void)
{
- hid_t type=-1, cwg=-1;
+ hid_t type=-1;
c_e1 val;
- signed char val8;
int size;
H5T_pad_t inpad;
H5T_cset_t cset;
diff --git a/test/fheap.c b/test/fheap.c
index f041706..64f3efb 100644
--- a/test/fheap.c
+++ b/test/fheap.c
@@ -10197,7 +10197,7 @@ test_abs_random_managed(hsize_t size_limit, hid_t fapl, H5HF_create_t *cparam, f
H5HF_t *fh = NULL; /* Fractal heap wrapper */
haddr_t fh_addr; /* Address of fractal heap */
size_t id_len; /* Size of fractal heap IDs */
- unsigned long seed; /* Random # seed */
+ unsigned long seed = 0; /* Random # seed */
size_t num_ids = 0; /* # of heap IDs in array */
size_t alloc_ids = 0; /* # of heap IDs allocated in array */
hsize_t total_obj_added; /* Size of objects added */
@@ -10354,7 +10354,7 @@ test_abs_random_pow2_managed(hsize_t size_limit, hid_t fapl, H5HF_create_t *cpar
H5HF_t *fh = NULL; /* Fractal heap wrapper */
haddr_t fh_addr; /* Address of fractal heap */
size_t id_len; /* Size of fractal heap IDs */
- unsigned long seed; /* Random # seed */
+ unsigned long seed = 0; /* Random # seed */
size_t num_ids = 0; /* # of heap IDs in array */
size_t alloc_ids = 0; /* # of heap IDs allocated in array */
hsize_t total_obj_added; /* Size of objects added */
diff --git a/test/tarray.c b/test/tarray.c
index 50fe1a9..22fb02b 100644
--- a/test/tarray.c
+++ b/test/tarray.c
@@ -189,7 +189,6 @@ test_array_funcs(void)
int size;
H5T_pad_t inpad;
H5T_norm_t norm;
- H5T_sign_t sign;
H5T_cset_t cset;
H5T_str_t strpad;
herr_t ret; /* Generic return value */
diff --git a/test/tskiplist.c b/test/tskiplist.c
index c76b79c..5b54dbd 100644
--- a/test/tskiplist.c
+++ b/test/tskiplist.c
@@ -1175,7 +1175,6 @@ test_skiplist_remove_first(void)
unsigned data[10]={ 10, 20, 15, 5, 50, 30, 31, 32, 80, 90};
unsigned sorted_data[10]={ 5, 10, 15, 20, 30, 31, 32, 50, 80, 90};
unsigned *found_item; /* Item found in skip list */
- unsigned find_item; /* Item to add to skip list */
herr_t ret; /* Generic return value */
/* Output message about test being performed */