summaryrefslogtreecommitdiffstats
path: root/src/H5Omessage.c
diff options
context:
space:
mode:
authorkmu <kmu@hdfgroup.org>2020-01-13 19:20:19 (GMT)
committerkmu <kmu@hdfgroup.org>2020-01-13 19:20:19 (GMT)
commit9712fad601a7844dc01deb1dc4d81b5aa5402b5e (patch)
treea5020737164f843254a67695e4cae4586f568c3e /src/H5Omessage.c
parentb0e5b2d9338bf352a4154a838c4146c84be8705b (diff)
downloadhdf5-9712fad601a7844dc01deb1dc4d81b5aa5402b5e.zip
hdf5-9712fad601a7844dc01deb1dc4d81b5aa5402b5e.tar.gz
hdf5-9712fad601a7844dc01deb1dc4d81b5aa5402b5e.tar.bz2
fix unused related warnings
Diffstat (limited to 'src/H5Omessage.c')
-rw-r--r--src/H5Omessage.c9
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. */