diff options
author | Sean McBride <sean@rogue-research.com> | 2021-02-22 17:37:12 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-02-22 17:37:12 (GMT) |
commit | 5ed255a607d604b45e92b06548682ae9b716535d (patch) | |
tree | 3dcf8239efca99143e561743c2ae997ce9ceca09 /src/H5Oprivate.h | |
parent | 99669024ff93df3ade5b8a1e6eee8bef6df57161 (diff) | |
download | hdf5-5ed255a607d604b45e92b06548682ae9b716535d.zip hdf5-5ed255a607d604b45e92b06548682ae9b716535d.tar.gz hdf5-5ed255a607d604b45e92b06548682ae9b716535d.tar.bz2 |
Fixed all -Wincompatible-pointer-types-discards-qualifiers warnings (#341)
* Fixed various -Wincompatible-pointer-types-discards-qualifiers warnings by adding const
* Fixed various -Wincompatible-pointer-types-discards-qualifiers warning by removing extraneous consts
There were casts with const, but the function parameter doesn't actaully take const, so just modified the casts.
In the other case, a local variable was const that should not have been, becuase its source wasn't const either.
* Fixed a -Wincompatible-pointer-types-discards-qualifiers warning by strdup-ing a string
Create a duplicate string instead of mutating a supposedly const one.
Diffstat (limited to 'src/H5Oprivate.h')
-rw-r--r-- | src/H5Oprivate.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/H5Oprivate.h b/src/H5Oprivate.h index b6bd3fe..5b4c11b 100644 --- a/src/H5Oprivate.h +++ b/src/H5Oprivate.h @@ -994,7 +994,7 @@ H5_DLL herr_t H5O_are_mdc_flushes_disabled(H5O_loc_t *oloc, hbool_t *are_disable H5_DLL herr_t H5O_copy_header_map(const H5O_loc_t *oloc_src, H5O_loc_t *oloc_dst /*out */, H5O_copy_t *cpy_info, hbool_t inc_depth, H5O_type_t *obj_type, void **udata); -H5_DLL herr_t H5O_copy_expand_ref(H5F_t *file_src, hid_t tid_src, H5T_t *dt_src, void *buf_src, +H5_DLL herr_t H5O_copy_expand_ref(H5F_t *file_src, hid_t tid_src, const H5T_t *dt_src, void *buf_src, size_t nbytes_src, H5F_t *file_dst, void *buf_dst, H5O_copy_t *cpy_info); /* Debugging routines */ |