diff options
author | David Young <dyoung@hdfgroup.org> | 2019-11-27 17:16:52 (GMT) |
---|---|---|
committer | David Young <dyoung@hdfgroup.org> | 2019-11-27 17:16:52 (GMT) |
commit | 8fb9fb5d4dab0b7e9a9884611d0511e2a03228a2 (patch) | |
tree | b6c708b99187fdb1f42fe46f454b8dcc66a8da05 /hl/src | |
parent | 9f61c26927ac74c4498cbebd7c9f2166d5f5b786 (diff) | |
download | hdf5-8fb9fb5d4dab0b7e9a9884611d0511e2a03228a2.zip hdf5-8fb9fb5d4dab0b7e9a9884611d0511e2a03228a2.tar.gz hdf5-8fb9fb5d4dab0b7e9a9884611d0511e2a03228a2.tar.bz2 |
Revert "Oops, remove more C99 designated initializers for VS 2010 compatibility."
This reverts commit f907b511d06612dafc7814a7c30f2f3d2b76d52b.
Diffstat (limited to 'hl/src')
-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 *------------------------------------------------------------------------- |