diff options
author | David Young <dyoung@hdfgroup.org> | 2019-11-27 17:16:52 (GMT) |
---|---|---|
committer | David Young <dyoung@hdfgroup.org> | 2020-05-20 14:19:38 (GMT) |
commit | e07ca4b4a537733deb8a0af491b60e6e62eb4f3f (patch) | |
tree | df0d91f8801bd5d0c89a8883c5c3def015b21237 /hl | |
parent | 975a360db28abb7050dc7bf0e0c2b0dac466badd (diff) | |
download | hdf5-e07ca4b4a537733deb8a0af491b60e6e62eb4f3f.zip hdf5-e07ca4b4a537733deb8a0af491b60e6e62eb4f3f.tar.gz hdf5-e07ca4b4a537733deb8a0af491b60e6e62eb4f3f.tar.bz2 |
Revert "Oops, remove more C99 designated initializers for VS 2010 compatibility."
This reverts commit f907b511d06612dafc7814a7c30f2f3d2b76d52b.
Diffstat (limited to 'hl')
-rw-r--r-- | hl/src/H5DS.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/hl/src/H5DS.c b/hl/src/H5DS.c index ce61028..44e0ecf9 100644 --- a/hl/src/H5DS.c +++ b/hl/src/H5DS.c @@ -1433,11 +1433,7 @@ 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; - - u.buf = NULL; - u.const_buf = NULL; - + } u = {.buf = NULL, .const_buf = NULL}; /*------------------------------------------------------------------------- * parameter checking *------------------------------------------------------------------------- |