summaryrefslogtreecommitdiffstats
path: root/hl/src/H5DS.c
diff options
context:
space:
mode:
authorDavid Young <dyoung@hdfgroup.org>2019-11-25 23:30:08 (GMT)
committerDavid Young <dyoung@hdfgroup.org>2019-11-25 23:30:08 (GMT)
commitf907b511d06612dafc7814a7c30f2f3d2b76d52b (patch)
tree0ea0f747721993f8b9a5bd9cc475fb25de7c1b8a /hl/src/H5DS.c
parent62208b056a09c01855fbac7f75146be58ad6bfe5 (diff)
downloadhdf5-f907b511d06612dafc7814a7c30f2f3d2b76d52b.zip
hdf5-f907b511d06612dafc7814a7c30f2f3d2b76d52b.tar.gz
hdf5-f907b511d06612dafc7814a7c30f2f3d2b76d52b.tar.bz2
Oops, remove more C99 designated initializers for VS 2010 compatibility.
Diffstat (limited to 'hl/src/H5DS.c')
-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
*-------------------------------------------------------------------------