diff options
author | Kimmy Mu <kmu@hdfgroup.org> | 2020-01-23 01:46:53 (GMT) |
---|---|---|
committer | kmu <kmu@hdfgroup.org> | 2020-01-28 02:39:58 (GMT) |
commit | 066b874e5a6eb828afea655b6ea5c2ac70abb9e8 (patch) | |
tree | 86505edf2affdf6c2e898725e95e72fe8dca63d3 /src/H5Omessage.c | |
parent | d038d8510032696e4defd86f1906e7d4fa133ba9 (diff) | |
download | hdf5-066b874e5a6eb828afea655b6ea5c2ac70abb9e8.zip hdf5-066b874e5a6eb828afea655b6ea5c2ac70abb9e8.tar.gz hdf5-066b874e5a6eb828afea655b6ea5c2ac70abb9e8.tar.bz2 |
Merge pull request #2094 in HDFFV/hdf5 from ~KMU/hdf5:bugfix/unused to develop
* commit '145ef3ceee20c28a443bd11507c58858bea3f889':
more cleanup
change it back
pick up missing piece
fix unused related warnings
removed unused parameter
more fix and address comments
remove unsed var,function,macro, etc
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..d66ea69 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_NDEBUG_UNUSED 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. */ |