diff options
author | Dana Robinson <43805+derobins@users.noreply.github.com> | 2022-06-29 15:41:45 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-06-29 15:41:45 (GMT) |
commit | 9e000893077bb3a897097cb05d6bcfde5227f70f (patch) | |
tree | 365b4f802e16dd0009ff330e8ce2807dd16dc805 /src/H5Gname.c | |
parent | 57a850f8971909d178151b60b7e43a5f995b6a57 (diff) | |
download | hdf5-9e000893077bb3a897097cb05d6bcfde5227f70f.zip hdf5-9e000893077bb3a897097cb05d6bcfde5227f70f.tar.gz hdf5-9e000893077bb3a897097cb05d6bcfde5227f70f.tar.bz2 |
Quiets const warnings (#1831)
Diffstat (limited to 'src/H5Gname.c')
-rw-r--r-- | src/H5Gname.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/H5Gname.c b/src/H5Gname.c index 7002daa..2ea1912 100644 --- a/src/H5Gname.c +++ b/src/H5Gname.c @@ -446,9 +446,10 @@ H5G_name_copy(H5G_name_t *dst, const H5G_name_t *src, H5_copy_depth_t depth) dst->user_path_r = H5RS_dup(src->user_path_r); } else { - /* Discarding 'const' qualifier OK - QAK */ + H5_GCC_CLANG_DIAG_OFF("cast-qual") H5G_name_reset((H5G_name_t *)src); - } /* end if */ + H5_GCC_CLANG_DIAG_ON("cast-qual") + } FUNC_LEAVE_NOAPI(SUCCEED) } /* end H5G_name_copy() */ |