diff options
author | David Young <dyoung@hdfgroup.org> | 2020-08-21 18:43:08 (GMT) |
---|---|---|
committer | David Young <dyoung@hdfgroup.org> | 2020-08-21 18:43:08 (GMT) |
commit | 482ee0765d53e65d0803e758b16e6ba33ea32af1 (patch) | |
tree | cbca13637547c3277fc254121d78b337a292cc62 | |
parent | c68700769fa56b04e4e13f2e5019cc2b93599fd5 (diff) | |
download | hdf5-482ee0765d53e65d0803e758b16e6ba33ea32af1.zip hdf5-482ee0765d53e65d0803e758b16e6ba33ea32af1.tar.gz hdf5-482ee0765d53e65d0803e758b16e6ba33ea32af1.tar.bz2 |
Apply Dana's fix for production mode builds.
-rw-r--r-- | test/vfd_swmr_vlstr_writer.c | 4 | ||||
-rw-r--r-- | test/vfd_swmr_zoo_writer.c | 4 |
2 files changed, 8 insertions, 0 deletions
diff --git a/test/vfd_swmr_vlstr_writer.c b/test/vfd_swmr_vlstr_writer.c index cb52fcb..d635b7a 100644 --- a/test/vfd_swmr_vlstr_writer.c +++ b/test/vfd_swmr_vlstr_writer.c @@ -96,6 +96,7 @@ create_vl_dset(hid_t file, hid_t type, hid_t space, const char *name) } static void +#ifndef H5C_COLLECT_CACHE_STATS print_cache_hits(H5C_t *cache) { int i; @@ -106,6 +107,9 @@ print_cache_hits(H5C_t *cache) } dbgf(3, "\n"); } +#else +print_cache_hits(H5C_t H5_ATTR_UNUSED *cache) { return; } +#endif static void usage(const char *progname) diff --git a/test/vfd_swmr_zoo_writer.c b/test/vfd_swmr_zoo_writer.c index 12db3cd..3eb228a 100644 --- a/test/vfd_swmr_zoo_writer.c +++ b/test/vfd_swmr_zoo_writer.c @@ -60,6 +60,7 @@ static const hid_t badhid = H5I_INVALID_HID; static bool writer; static void +#ifndef H5C_COLLECT_CACHE_STATS print_cache_hits(H5C_t *cache) { int i; @@ -70,6 +71,9 @@ print_cache_hits(H5C_t *cache) } dbgf(3, "\n"); } +#else +print_cache_hits(H5C_t H5_ATTR_UNUSED *cache) { return; } +#endif void zoo_create_hook(hid_t fid) |