diff options
author | H. Joe Lee <hyoklee@hdfgroup.org> | 2022-01-07 22:30:18 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-01-07 22:30:18 (GMT) |
commit | bf27121b5d01939c819ac8b5b96101a16175c4de (patch) | |
tree | 398e9ef8193391c6e82f03385499a5ae671af7c0 /src | |
parent | 58e2157c7e5e310b2d7d5366da2f99d2db051f4f (diff) | |
download | hdf5-bf27121b5d01939c819ac8b5b96101a16175c4de.zip hdf5-bf27121b5d01939c819ac8b5b96101a16175c4de.tar.gz hdf5-bf27121b5d01939c819ac8b5b96101a16175c4de.tar.bz2 |
OESS-168: Remove clang warnings. (#1308)
Diffstat (limited to 'src')
-rw-r--r-- | src/H5FDdirect.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/H5FDdirect.c b/src/H5FDdirect.c index d07d909..7a43117 100644 --- a/src/H5FDdirect.c +++ b/src/H5FDdirect.c @@ -213,8 +213,11 @@ H5FD_direct_init(void) else ignore_disabled_file_locks_s = FAIL; /* Environment variable not set, or not set correctly */ - if (H5I_VFL != H5I_get_type(H5FD_DIRECT_g)) + if (H5I_VFL != H5I_get_type(H5FD_DIRECT_g)) { H5FD_DIRECT_g = H5FD_register(&H5FD_direct_g, sizeof(H5FD_class_t), FALSE); + if (H5I_INVALID_HID == H5FD_DIRECT_g) + HGOTO_ERROR(H5E_ID, H5E_CANTREGISTER, H5I_INVALID_HID, "unable to register direct"); + } /* Set return value */ ret_value = H5FD_DIRECT_g; |