summaryrefslogtreecommitdiffstats
path: root/hl
diff options
context:
space:
mode:
authorDavid Young <dyoung@hdfgroup.org>2019-11-25 23:30:08 (GMT)
committerDavid Young <dyoung@hdfgroup.org>2020-05-20 14:19:38 (GMT)
commit10911a11767aee10c5bc1def143dad1a5f5576cc (patch)
treef4bb11ec822884b1fb4be69dfd248080940d9f62 /hl
parentdffa21d2fb817ab59c180d54acde876567beb78d (diff)
downloadhdf5-10911a11767aee10c5bc1def143dad1a5f5576cc.zip
hdf5-10911a11767aee10c5bc1def143dad1a5f5576cc.tar.gz
hdf5-10911a11767aee10c5bc1def143dad1a5f5576cc.tar.bz2
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
*-------------------------------------------------------------------------