diff options
author | Dana Robinson <derobins@hdfgroup.org> | 2020-01-09 03:40:32 (GMT) |
---|---|---|
committer | Dana Robinson <derobins@hdfgroup.org> | 2020-01-09 03:40:32 (GMT) |
commit | 887aa3d05d0a64e1c8198138334c0fe761d0ab2f (patch) | |
tree | f76830792c4ebde1d4cf96810dfce70cc07808cb /src/H5FD.c | |
parent | 78f0ecc3b98c77b4293c02e78d158a8385513d37 (diff) | |
download | hdf5-887aa3d05d0a64e1c8198138334c0fe761d0ab2f.zip hdf5-887aa3d05d0a64e1c8198138334c0fe761d0ab2f.tar.gz hdf5-887aa3d05d0a64e1c8198138334c0fe761d0ab2f.tar.bz2 |
Merge of --Wc++-compat changes from develop
Diffstat (limited to 'src/H5FD.c')
-rw-r--r-- | src/H5FD.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -243,7 +243,7 @@ H5FDregister(const H5FD_class_t *cls) HGOTO_ERROR(H5E_ARGS, H5E_UNINITIALIZED, FAIL, "`get_eof' method is not defined") if(!cls->read || !cls->write) HGOTO_ERROR(H5E_ARGS, H5E_UNINITIALIZED, FAIL, "`read' and/or `write' method is not defined") - for (type = H5FD_MEM_DEFAULT; type < H5FD_MEM_NTYPES; H5_INC_ENUM(H5FD_mem_t,type)) + for (type = H5FD_MEM_DEFAULT; type < H5FD_MEM_NTYPES; type++) if(cls->fl_map[type] < H5FD_MEM_NOLIST || cls->fl_map[type] >= H5FD_MEM_NTYPES) HGOTO_ERROR(H5E_ARGS, H5E_BADVALUE, FAIL, "invalid free-list mapping") @@ -288,7 +288,7 @@ H5FD_register(const void *_cls, size_t size, hbool_t app_ref) HDassert(cls->get_eoa && cls->set_eoa); HDassert(cls->get_eof); HDassert(cls->read && cls->write); - for(type = H5FD_MEM_DEFAULT; type < H5FD_MEM_NTYPES; H5_INC_ENUM(H5FD_mem_t, type)) + for(type = H5FD_MEM_DEFAULT; type < H5FD_MEM_NTYPES; type++) HDassert(cls->fl_map[type] >= H5FD_MEM_NOLIST && cls->fl_map[type] < H5FD_MEM_NTYPES); /* Copy the class structure so the caller can reuse or free it */ |