1
0
mirror of https://github.com/TREX-CoE/trexio.git synced 2024-11-03 20:54:07 +01:00

Fix compiler warnings introduced after merging walkers branch

This commit is contained in:
q-posev 2022-04-13 17:04:49 +02:00
parent 33838546c7
commit 3d9f1c85c4

View File

@ -439,7 +439,7 @@ trexio_hdf5_write_$group_dset$ (trexio_t* const file,
trexio_hdf5_t* f = (trexio_hdf5_t*) file;
hid_t index_dtype;
const void* index_p;
void* index_p = NULL;
uint64_t size_ranked = (uint64_t) size * $group_dset_rank$;
/* Determine the optimal type for storing indices depending on the size_max (usually mo_num or ao_num) */
if (size_max < UINT8_MAX) {
@ -459,7 +459,7 @@ trexio_hdf5_write_$group_dset$ (trexio_t* const file,
index_p = index;
index_dtype = H5T_NATIVE_UINT16;
} else {
index_p = (const int32_t*) index_sparse;
index_p = (int32_t*) index_sparse;
index_dtype = H5T_NATIVE_INT32;
}