summaryrefslogtreecommitdiffstats
path: root/test
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 /test
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 'test')
-rw-r--r--test/fillval.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/test/fillval.c b/test/fillval.c
index 5c20e14..dd0ca7f 100644
--- a/test/fillval.c
+++ b/test/fillval.c
@@ -758,11 +758,15 @@ 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 = {.a = 0, .x = 0, .y = 0, .z = 0},
- should_be_c;
+ comp_datatype rd_c, fill_c, 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;
}