summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorDana Robinson <43805+derobins@users.noreply.github.com>2022-06-29 15:41:45 (GMT)
committerGitHub <noreply@github.com>2022-06-29 15:41:45 (GMT)
commit9e000893077bb3a897097cb05d6bcfde5227f70f (patch)
tree365b4f802e16dd0009ff330e8ce2807dd16dc805 /test
parent57a850f8971909d178151b60b7e43a5f995b6a57 (diff)
downloadhdf5-9e000893077bb3a897097cb05d6bcfde5227f70f.zip
hdf5-9e000893077bb3a897097cb05d6bcfde5227f70f.tar.gz
hdf5-9e000893077bb3a897097cb05d6bcfde5227f70f.tar.bz2
Quiets const warnings (#1831)
Diffstat (limited to 'test')
-rw-r--r--test/objcopy_ref.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/test/objcopy_ref.c b/test/objcopy_ref.c
index d10adf6..ef20cb4 100644
--- a/test/objcopy_ref.c
+++ b/test/objcopy_ref.c
@@ -939,8 +939,10 @@ compare_data(hid_t parent1, hid_t parent2, hid_t pid, hid_t tid, size_t nelmts,
H5R_ref_t *ref_buf1, *ref_buf2; /* Aliases for buffers to compare */
/* Loop over elements in buffers */
+ H5_GCC_CLANG_DIAG_OFF("cast-qual")
ref_buf1 = (H5R_ref_t *)buf1;
ref_buf2 = (H5R_ref_t *)buf2;
+ H5_GCC_CLANG_DIAG_ON("cast-qual")
for (u = 0; u < nelmts; u++, ref_buf1++, ref_buf2++) {
hid_t obj1_id, obj2_id; /* IDs for objects referenced */
H5O_type_t obj1_type, obj2_type; /* Types of objects referenced */