summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorjhendersonHDF <jhenderson@hdfgroup.org>2023-07-18 19:42:03 (GMT)
committerGitHub <noreply@github.com>2023-07-18 19:42:03 (GMT)
commit59a0d8baef9e0a5acbe57cb8c0a80b5c42251b51 (patch)
treed256079b98cca353859d1fae78e03048f76a8919 /src
parent1903c4b1b0bd227b6713364792d241015b4edb5a (diff)
downloadhdf5-59a0d8baef9e0a5acbe57cb8c0a80b5c42251b51.zip
hdf5-59a0d8baef9e0a5acbe57cb8c0a80b5c42251b51.tar.gz
hdf5-59a0d8baef9e0a5acbe57cb8c0a80b5c42251b51.tar.bz2
Fix warning in H5C__UPDATE_STATS_FOR_DIRTY_PIN macro (#3259)
Add braces to H5C__UPDATE_STATS_FOR_DIRTY_PIN macro to fix warning causing Werror Release builds to fail
Diffstat (limited to 'src')
-rw-r--r--src/H5Cpkg.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/H5Cpkg.h b/src/H5Cpkg.h
index 81e67fe..fbde8a8 100644
--- a/src/H5Cpkg.h
+++ b/src/H5Cpkg.h
@@ -532,7 +532,7 @@ do { \
#else /* H5C_COLLECT_CACHE_STATS */
#define H5C__RESET_CACHE_ENTRY_STATS(entry_ptr)
-#define H5C__UPDATE_STATS_FOR_DIRTY_PIN(cache_ptr, entry_ptr)
+#define H5C__UPDATE_STATS_FOR_DIRTY_PIN(cache_ptr, entry_ptr) {}
#define H5C__UPDATE_STATS_FOR_UNPROTECT(cache_ptr)
#define H5C__UPDATE_STATS_FOR_MOVE(cache_ptr, entry_ptr)
#define H5C__UPDATE_STATS_FOR_ENTRY_SIZE_CHANGE(cache_ptr, entry_ptr, new_size)