summaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorPatrick Lu <ptlu@hawkwind.ncsa.uiuc.edu>1999-09-25 15:58:19 (GMT)
committerPatrick Lu <ptlu@hawkwind.ncsa.uiuc.edu>1999-09-25 15:58:19 (GMT)
commitffaff7a404580b689a13579aa46db28d006ab11e (patch)
tree19d286131ed0cb5017d33ed37d5ea25e9ce4b05c /tools
parent0794a557e50754ce58417f157489fbd4af572dad (diff)
downloadhdf5-ffaff7a404580b689a13579aa46db28d006ab11e.zip
hdf5-ffaff7a404580b689a13579aa46db28d006ab11e.tar.gz
hdf5-ffaff7a404580b689a13579aa46db28d006ab11e.tar.bz2
[svn-r1660] remved some(not all) of the warnings
Diffstat (limited to 'tools')
-rw-r--r--tools/h5dumptst.c28
1 files changed, 14 insertions, 14 deletions
diff --git a/tools/h5dumptst.c b/tools/h5dumptst.c
index d11037d..609b346 100644
--- a/tools/h5dumptst.c
+++ b/tools/h5dumptst.c
@@ -53,6 +53,12 @@ typedef struct s1_t {
} s1_t;
+void test_enum(void);
+void test_objref(void);
+void test_datareg(void);
+
+
+
static void test_group(void) {
hid_t fid, group;
@@ -1152,16 +1158,15 @@ size_t mdims[2];
*/
static void test_str2(void) {
-hid_t fid, group, attr, dataset, space, space2, mem_space, hyper_space, type;
+hid_t fid, group, attr, dataset, space, space2, mem_space, hyper_space;
hid_t fxdlenstr, fxdlenstr2, memtype;
hsize_t dims[1], size[1], start[1], stride[1], count[1], block[1];
-int i, j;
-int i0, i1, i2, i3;
+hsize_t i;
char buf[LENSTR+10];
char buf2[3*LENSTR2];
-hsize_t sdim, maxdim;
+hsize_t sdim;
fid = H5Fcreate(FILE14, H5F_ACC_TRUNC, H5P_DEFAULT, H5P_DEFAULT);
@@ -1310,11 +1315,10 @@ hsize_t sdim, maxdim;
}
-void test_enum(){
+void test_enum(void){
/*some code is taken from enum.c in the test dir */
hid_t file, type, space, dset;
int val;
- signed char val8;
enumtype data[] = {RED, GREEN, BLUE, GREEN, WHITE,
WHITE, BLACK, GREEN, BLUE, RED,
RED, BLUE, GREEN, BLACK, WHITE,
@@ -1343,11 +1347,11 @@ void test_enum(){
-void test_objref(){
+void test_objref(void){
/*some code is taken from enum.c in the test dir */
hid_t fid1; /* HDF5 File IDs */
- hid_t dataset, /* Dataset ID */
- dset2; /* Dereferenced dataset ID */
+ hid_t dataset; /* Dataset ID */
+
hid_t group; /* Group ID */
hid_t sid1; /* Dataspace ID */
hid_t tid1; /* Datatype ID */
@@ -1358,7 +1362,6 @@ void test_objref(){
uint32_t *tu32; /* Temporary pointer to uint32 data */
intn i; /* counting variables */
const char *write_comment="Foo!"; /* Comments for group */
- char read_comment[10];
herr_t ret; /* Generic return value */
@@ -1461,7 +1464,7 @@ void test_objref(){
}
-void test_datareg(){
+void test_datareg(void){
/*some code is taken from enum.c in the test dir */
@@ -1477,9 +1480,6 @@ void test_datareg(){
hsize_t count[SPACE2_RANK]; /* Element count of hyperslab */
hsize_t block[SPACE2_RANK]; /* Block size of hyperslab */
hssize_t coord1[POINT1_NPOINTS][SPACE2_RANK]; /* Coordinates for point selection */
- hsize_t * coords; /* Coordinate buffer */
- hsize_t low[SPACE2_RANK]; /* Selection bounds */
- hsize_t high[SPACE2_RANK]; /* Selection bounds */
hdset_reg_ref_t *wbuf, /* buffer to write to disk */
*rbuf; /* buffer read from disk */
uint8_t *dwbuf, /* Buffer for writing numeric data to disk */