summaryrefslogtreecommitdiffstats
path: root/src/H5Pfapl.c
diff options
context:
space:
mode:
authorDavid Young <dyoung@hdfgroup.org>2020-07-14 20:01:50 (GMT)
committerDavid Young <dyoung@hdfgroup.org>2020-07-14 20:01:50 (GMT)
commit30a62d138030e914da4a8e19771350617d9e8215 (patch)
tree054a412490d631896e9d40f8912c3d48f378c175 /src/H5Pfapl.c
parent63c7ec249665097c78ee308fa26500f1c4ea3243 (diff)
downloadhdf5-30a62d138030e914da4a8e19771350617d9e8215.zip
hdf5-30a62d138030e914da4a8e19771350617d9e8215.tar.gz
hdf5-30a62d138030e914da4a8e19771350617d9e8215.tar.bz2
Don't check an unsigned integer for being negative. Quiets a GCC warning.
Diffstat (limited to 'src/H5Pfapl.c')
-rw-r--r--src/H5Pfapl.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/H5Pfapl.c b/src/H5Pfapl.c
index f616c70..678dbf7 100644
--- a/src/H5Pfapl.c
+++ b/src/H5Pfapl.c
@@ -5577,7 +5577,7 @@ H5Pset_vfd_swmr_config(hid_t plist_id, H5F_vfd_swmr_config_t *config_ptr)
HGOTO_ERROR(H5E_PLIST, H5E_BADVALUE, FAIL, "md_pages_reserved must be at least 2")
/* This field must be in the range [0, 100] */
- if(config_ptr->pb_expansion_threshold < 0 || config_ptr->pb_expansion_threshold > H5F__MAX_PB_EXPANSION_THRESHOLD)
+ if(config_ptr->pb_expansion_threshold > H5F__MAX_PB_EXPANSION_THRESHOLD)
HGOTO_ERROR(H5E_PLIST, H5E_BADVALUE, FAIL, "pb_expansion_threshold out of range")
/* Must provide the path for the metadata file */