diff options
author | David Young <dyoung@hdfgroup.org> | 2019-11-25 23:30:08 (GMT) |
---|---|---|
committer | David Young <dyoung@hdfgroup.org> | 2020-05-20 14:19:38 (GMT) |
commit | 10911a11767aee10c5bc1def143dad1a5f5576cc (patch) | |
tree | f4bb11ec822884b1fb4be69dfd248080940d9f62 /hl/src | |
parent | dffa21d2fb817ab59c180d54acde876567beb78d (diff) | |
download | hdf5-10911a11767aee10c5bc1def143dad1a5f5576cc.zip hdf5-10911a11767aee10c5bc1def143dad1a5f5576cc.tar.gz hdf5-10911a11767aee10c5bc1def143dad1a5f5576cc.tar.bz2 |
Oops, remove more C99 designated initializers for VS 2010 compatibility.
Diffstat (limited to 'hl/src')
-rw-r--r-- | hl/src/H5DS.c | 6 |
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 *------------------------------------------------------------------------- |