summaryrefslogtreecommitdiffstats
path: root/src/H5Tref.c
diff options
context:
space:
mode:
authorjhendersonHDF <jhenderson@hdfgroup.org>2023-07-18 11:27:07 (GMT)
committerGitHub <noreply@github.com>2023-07-18 11:27:07 (GMT)
commitaab497a6312a9d8434a7dc7b5a593713fc8fbce0 (patch)
tree018a95afb94dd103dcbef98e4a383382a52968bf /src/H5Tref.c
parent919ce7adc2f24414b749c2a6880da00259350881 (diff)
downloadhdf5-aab497a6312a9d8434a7dc7b5a593713fc8fbce0.zip
hdf5-aab497a6312a9d8434a7dc7b5a593713fc8fbce0.tar.gz
hdf5-aab497a6312a9d8434a7dc7b5a593713fc8fbce0.tar.bz2
Fix some warnings in developer builds (#3247)
* 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 f0cdb29..f508dfb 100644
--- a/src/H5Tref.c
+++ b/src/H5Tref.c
@@ -1004,8 +1004,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);
- assert(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 */