summaryrefslogtreecommitdiffstats
path: root/tools/h5stat/h5stat_gentest.c
diff options
context:
space:
mode:
authorDana Robinson <derobins@hdfgroup.org>2015-09-16 15:23:16 (GMT)
committerDana Robinson <derobins@hdfgroup.org>2015-09-16 15:23:16 (GMT)
commitd90e4acfa7b0d1be202d56441e9912417147af26 (patch)
tree82b9d8588618c73b993520a0a888988bd2b9ce7b /tools/h5stat/h5stat_gentest.c
parent2385b2b0ad832825bd9009237149e1581326c044 (diff)
downloadhdf5-d90e4acfa7b0d1be202d56441e9912417147af26.zip
hdf5-d90e4acfa7b0d1be202d56441e9912417147af26.tar.gz
hdf5-d90e4acfa7b0d1be202d56441e9912417147af26.tar.bz2
[svn-r27801] Minor warning fixes in the tools.
Tested on: jam (too minor for h5committest)
Diffstat (limited to 'tools/h5stat/h5stat_gentest.c')
-rw-r--r--tools/h5stat/h5stat_gentest.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/tools/h5stat/h5stat_gentest.c b/tools/h5stat/h5stat_gentest.c
index 5ad73f7..100f5b2 100644
--- a/tools/h5stat/h5stat_gentest.c
+++ b/tools/h5stat/h5stat_gentest.c
@@ -48,14 +48,14 @@
static void
gen_newgrat_file(const char *fname)
{
- hid_t fcpl; /* File creation property */
- hid_t fapl; /* File access property */
- hid_t fid; /* File id */
- hid_t gid; /* Group id */
- hid_t tid; /* Datatype id */
- hid_t sid; /* Dataspace id */
- hid_t attr_id; /* Attribute id */
- hid_t did; /* Dataset id */
+ hid_t fcpl = -1; /* File creation property */
+ hid_t fapl = -1; /* File access property */
+ hid_t fid = -1; /* File id */
+ hid_t gid = -1; /* Group id */
+ hid_t tid = -1; /* Datatype id */
+ hid_t sid = -1; /* Dataspace id */
+ hid_t attr_id = -1; /* Attribute id */
+ hid_t did = -1; /* Dataset id */
char name[30]; /* Group name */
char attrname[30]; /* Attribute name */
int i; /* Local index variable */