summaryrefslogtreecommitdiffstats
path: root/tools/h5stat
diff options
context:
space:
mode:
authorDana Robinson <derobins@hdfgroup.org>2015-11-20 20:48:16 (GMT)
committerDana Robinson <derobins@hdfgroup.org>2015-11-20 20:48:16 (GMT)
commite8ad6b8a8d9d93b50a65039a74e33e4f337efb70 (patch)
tree50bc01158c96ee9cae65af7a1a8fb085f78cf0eb /tools/h5stat
parente8fb73f0384940202a7ebe4a8255d9b0d2189117 (diff)
downloadhdf5-e8ad6b8a8d9d93b50a65039a74e33e4f337efb70.zip
hdf5-e8ad6b8a8d9d93b50a65039a74e33e4f337efb70.tar.gz
hdf5-e8ad6b8a8d9d93b50a65039a74e33e4f337efb70.tar.bz2
[svn-r28426] Fixed all maybe-uninitialized warnings from gcc 5.2.
Tested on Ubuntu 15.10 (Linux 4.2.0 x86_64) gcc 5.2.1 serial only
Diffstat (limited to 'tools/h5stat')
-rw-r--r--tools/h5stat/h5stat_gentest.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/tools/h5stat/h5stat_gentest.c b/tools/h5stat/h5stat_gentest.c
index b91f52e..02bd136 100644
--- a/tools/h5stat/h5stat_gentest.c
+++ b/tools/h5stat/h5stat_gentest.c
@@ -352,11 +352,11 @@ error:
static void
gen_idx_file(const char *fname)
{
- hid_t fapl; /* file access property id */
- hid_t fid; /* file id */
- hid_t sid; /* space id */
- hid_t dcpl; /* dataset creation property id */
- hid_t did, did2; /* dataset id */
+ hid_t fapl = -1; /* file access property id */
+ hid_t fid = -1; /* file id */
+ hid_t sid = -1; /* space id */
+ hid_t dcpl = -1; /* dataset creation property id */
+ hid_t did = -1, did2 = -1; /* dataset id */
hsize_t dims[1] = {10}; /* dataset dimension */
hsize_t c_dims[1] = {2}; /* chunk dimension */
int i; /* local index variable */