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 /test | |
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 'test')
-rw-r--r-- | test/fillval.c | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/test/fillval.c b/test/fillval.c index dd0ca7f..5c20e14 100644 --- a/test/fillval.c +++ b/test/fillval.c @@ -758,15 +758,11 @@ test_rdwr_cases(hid_t file, hid_t dcpl, const char *dname, void *_fillval, int fillval=(-1), val_rd, should_be; int i, j, *buf=NULL, odd; unsigned u; - comp_datatype rd_c, fill_c, should_be_c; + comp_datatype rd_c, fill_c = {.a = 0, .x = 0, .y = 0, .z = 0}, + should_be_c; comp_datatype *buf_c=NULL; H5D_space_status_t allocation; - fill_c.a = 0; - fill_c.x = 0; - fill_c.y = 0; - fill_c.z = 0; - if(datatype == H5T_INTEGER) { fillval = *(int*)_fillval; } |