summaryrefslogtreecommitdiffstats
path: root/hl/test
diff options
context:
space:
mode:
authorDana Robinson <derobins@hdfgroup.org>2015-09-16 10:34:25 (GMT)
committerDana Robinson <derobins@hdfgroup.org>2015-09-16 10:34:25 (GMT)
commitcc0165a973d17386cd4983ac1d0394ad4feb8034 (patch)
tree47c0839db019c336beeae779a6030f85869eb97f /hl/test
parent183ba43b41674c3d8912cb3759bc57fa846155ed (diff)
downloadhdf5-cc0165a973d17386cd4983ac1d0394ad4feb8034.zip
hdf5-cc0165a973d17386cd4983ac1d0394ad4feb8034.tar.gz
hdf5-cc0165a973d17386cd4983ac1d0394ad4feb8034.tar.bz2
[svn-r27799] Minor warning fixes in the high-level library.
Tested on: jam (too minor for h5committest)
Diffstat (limited to 'hl/test')
-rw-r--r--hl/test/test_image.c2
-rw-r--r--hl/test/test_lite.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/hl/test/test_image.c b/hl/test/test_image.c
index 5d68eeb..8ba0083 100644
--- a/hl/test/test_image.c
+++ b/hl/test/test_image.c
@@ -540,7 +540,7 @@ static int test_generate(void)
{
hid_t fid;
hsize_t pal_dims[2] = { 256, 3 };
- float *data;
+ float *data = NULL;
int imax, jmax, kmax;
int n_elements;
float valex, xmin, xmax, value;
diff --git a/hl/test/test_lite.c b/hl/test/test_lite.c
index d4e5f93..9d625e9 100644
--- a/hl/test/test_lite.c
+++ b/hl/test/test_lite.c
@@ -1196,7 +1196,7 @@ static int test_strings(void)
H5T_str_t str_pad;
H5T_cset_t str_cset;
H5T_class_t type_class;
- char* dt_str;
+ char* dt_str = NULL;
size_t str_len;
TESTING3(" text for string types");