summaryrefslogtreecommitdiffstats
path: root/src/H5Tref.c
diff options
context:
space:
mode:
authorjhendersonHDF <jhenderson@hdfgroup.org>2023-07-27 19:11:46 (GMT)
committerGitHub <noreply@github.com>2023-07-27 19:11:46 (GMT)
commit2bb4c909c4c63cf87d10c494cd76d57092d45335 (patch)
treee5da9e282045d3b17921169e00bb4164aa31bedc /src/H5Tref.c
parent17a5a1a37ccc851ca9123b2921fbae15c4814edf (diff)
downloadhdf5-2bb4c909c4c63cf87d10c494cd76d57092d45335.zip
hdf5-2bb4c909c4c63cf87d10c494cd76d57092d45335.tar.gz
hdf5-2bb4c909c4c63cf87d10c494cd76d57092d45335.tar.bz2
Fix some warnings in developer builds (#3247) (#3291)
* Fix some warnings in developer builds * Switch approach to Winline flag
Diffstat (limited to 'src/H5Tref.c')
-rw-r--r--src/H5Tref.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/H5Tref.c b/src/H5Tref.c
index f914b8d..f96d181 100644
--- a/src/H5Tref.c
+++ b/src/H5Tref.c
@@ -1003,8 +1003,10 @@ H5T__ref_disk_write(H5VL_object_t H5_ATTR_UNUSED *src_file, const void *src_buf,
src_size -= H5R_ENCODE_HEADER_SIZE;
#ifndef NDEBUG
- size_t buf_size_left = dst_size - sizeof(uint32_t);
- HDassert(buf_size_left > sizeof(uint32_t));
+ {
+ size_t buf_size_left = dst_size - sizeof(uint32_t);
+ assert(buf_size_left > sizeof(uint32_t));
+ }
#endif
/* Set the size */