diff options
author | kmu <kmu@hdfgroup.org> | 2020-01-13 19:20:19 (GMT) |
---|---|---|
committer | David Young <dyoung@hdfgroup.org> | 2020-05-20 14:31:51 (GMT) |
commit | 27c618b91d6e6390d5fe987886372e7b9593b25f (patch) | |
tree | 84a41f876f022a5fbf6d083d8cce9b2375320f23 /src/H5Omessage.c | |
parent | 8377789f8fb1195d9f5dc516f27d86e1aabfd297 (diff) | |
download | hdf5-27c618b91d6e6390d5fe987886372e7b9593b25f.zip hdf5-27c618b91d6e6390d5fe987886372e7b9593b25f.tar.gz hdf5-27c618b91d6e6390d5fe987886372e7b9593b25f.tar.bz2 |
fix unused related warnings
Diffstat (limited to 'src/H5Omessage.c')
-rw-r--r-- | src/H5Omessage.c | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/src/H5Omessage.c b/src/H5Omessage.c index 18f3706..1623769 100644 --- a/src/H5Omessage.c +++ b/src/H5Omessage.c @@ -1686,17 +1686,14 @@ done: *------------------------------------------------------------------------- */ herr_t -H5O_msg_reset_share(unsigned type_id, void *mesg) +H5O_msg_reset_share(unsigned H5_ATTR_SANITY_CHECK type_id, void *mesg) { - const H5O_msg_class_t *type; /* Actual H5O class type for the ID */ - FUNC_ENTER_NOAPI_NOINIT_NOERR /* Check args */ HDassert(type_id < NELMTS(H5O_msg_class_g)); - type = H5O_msg_class_g[type_id]; /* map the type ID to the actual type object */ - HDassert(type); - HDassert(type->share_flags & H5O_SHARE_IS_SHARABLE); + HDassert(H5O_msg_class_g[type_id]); /* map the type ID to the actual type object */ + HDassert(H5O_msg_class_g[type_id]->share_flags & H5O_SHARE_IS_SHARABLE); HDassert(mesg); /* Reset the shared component in the message to zero. */ |