summaryrefslogtreecommitdiffstats
path: root/src/H5FDonion.c
diff options
context:
space:
mode:
authorjhendersonHDF <jhenderson@hdfgroup.org>2023-07-27 19:11:46 (GMT)
committerGitHub <noreply@github.com>2023-07-27 19:11:46 (GMT)
commit2bb4c909c4c63cf87d10c494cd76d57092d45335 (patch)
treee5da9e282045d3b17921169e00bb4164aa31bedc /src/H5FDonion.c
parent17a5a1a37ccc851ca9123b2921fbae15c4814edf (diff)
downloadhdf5-2bb4c909c4c63cf87d10c494cd76d57092d45335.zip
hdf5-2bb4c909c4c63cf87d10c494cd76d57092d45335.tar.gz
hdf5-2bb4c909c4c63cf87d10c494cd76d57092d45335.tar.bz2
Fix some warnings in developer builds (#3247) (#3291)
* Fix some warnings in developer builds * Switch approach to Winline flag
Diffstat (limited to 'src/H5FDonion.c')
-rw-r--r--src/H5FDonion.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/H5FDonion.c b/src/H5FDonion.c
index 1c81870..ad21e8f 100644
--- a/src/H5FDonion.c
+++ b/src/H5FDonion.c
@@ -911,6 +911,7 @@ H5FD__onion_open(const char *filename, unsigned flags, hid_t fapl_id, haddr_t ma
const H5FD_onion_fapl_info_t *fa = NULL;
H5FD_onion_fapl_info_t *new_fa = NULL;
const char *config_str = NULL;
+ double log2_page_size = 0.0;
hid_t backing_fapl_id = H5I_INVALID_HID;
char *name_onion = NULL;
char *recovery_file_nameery = NULL;
@@ -994,7 +995,7 @@ H5FD__onion_open(const char *filename, unsigned flags, hid_t fapl_id, haddr_t ma
HGOTO_ERROR(H5E_ARGS, H5E_BADVALUE, NULL, "page size is not a power of two")
/* Assign the page size */
- double log2_page_size = HDlog2((double)(fa->page_size));
+ log2_page_size = HDlog2((double)(fa->page_size));
file->curr_rev_record.archival_index.page_size_log2 = (uint32_t)log2_page_size;
/* Proceed with open. */