diff options
author | jhendersonHDF <jhenderson@hdfgroup.org> | 2023-07-18 11:27:07 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-07-18 11:27:07 (GMT) |
commit | aab497a6312a9d8434a7dc7b5a593713fc8fbce0 (patch) | |
tree | 018a95afb94dd103dcbef98e4a383382a52968bf /src/H5Tref.c | |
parent | 919ce7adc2f24414b749c2a6880da00259350881 (diff) | |
download | hdf5-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.c | 6 |
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 */ |