summaryrefslogtreecommitdiffstats
path: root/hl
diff options
context:
space:
mode:
authorDavid Young <dyoung@hdfgroup.org>2019-11-25 23:33:54 (GMT)
committerDavid Young <dyoung@hdfgroup.org>2019-11-25 23:33:54 (GMT)
commita8892bb42d6f6e4fbc30fae0eb2b957f81c938b9 (patch)
tree0ea0f747721993f8b9a5bd9cc475fb25de7c1b8a /hl
parent5c911d8baf3ee7fe654269088eebdf07f59a8192 (diff)
parentf907b511d06612dafc7814a7c30f2f3d2b76d52b (diff)
downloadhdf5-a8892bb42d6f6e4fbc30fae0eb2b957f81c938b9.zip
hdf5-a8892bb42d6f6e4fbc30fae0eb2b957f81c938b9.tar.gz
hdf5-a8892bb42d6f6e4fbc30fae0eb2b957f81c938b9.tar.bz2
Merge pull request #2055 in HDFFV/hdf5 from ~DYOUNG/vchoi_fork:add-werror-and-squash-some to develop
* commit 'f907b511d06612dafc7814a7c30f2f3d2b76d52b': Oops, remove more C99 designated initializers for VS 2010 compatibility.
Diffstat (limited to 'hl')
-rw-r--r--hl/src/H5DS.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/hl/src/H5DS.c b/hl/src/H5DS.c
index 44e0ecf9..ce61028 100644
--- a/hl/src/H5DS.c
+++ b/hl/src/H5DS.c
@@ -1433,7 +1433,11 @@ herr_t H5DSset_label(hid_t did, unsigned int idx, const char *label)
union { /* union is needed to eliminate compiler warnings about */
char ** buf; /* discarding the 'const' qualifier in the free */
char const ** const_buf; /* buf calls */
- } u = {.buf = NULL, .const_buf = NULL};
+ } u;
+
+ u.buf = NULL;
+ u.const_buf = NULL;
+
/*-------------------------------------------------------------------------
* parameter checking
*-------------------------------------------------------------------------