Fixes warnings when the deflate filter is not built (#1904)
* Fixes warnings when the deflate filter is not built * Committing clang-format changes Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
This commit is contained in:
@@ -2059,7 +2059,6 @@ gen_dataset_idx(const char *file, int format)
|
||||
{
|
||||
hid_t fid = H5I_INVALID_HID; /* file id */
|
||||
hid_t did = H5I_INVALID_HID;
|
||||
hid_t did2 = H5I_INVALID_HID; /* dataset id */
|
||||
hid_t sid = H5I_INVALID_HID; /* space id */
|
||||
hid_t fapl = H5I_INVALID_HID; /* file access property id */
|
||||
hid_t dcpl = H5I_INVALID_HID; /* dataset creation property id */
|
||||
@@ -2068,6 +2067,9 @@ gen_dataset_idx(const char *file, int format)
|
||||
herr_t status; /* return status */
|
||||
int buf[10]; /* data buffer */
|
||||
int i; /* local index variable */
|
||||
#if defined(H5_HAVE_FILTER_DEFLATE)
|
||||
hid_t did2 = H5I_INVALID_HID; /* dataset id */
|
||||
#endif
|
||||
|
||||
/* Get a copy of the file aaccess property */
|
||||
fapl = H5Pcreate(H5P_FILE_ACCESS);
|
||||
|
||||
Reference in New Issue
Block a user