Skip to content

Commit

Permalink
Fixed some -Wunused-variable warnings and one Wsometimes-uninitialize…
Browse files Browse the repository at this point in the history
…d warning (#3260)
  • Loading branch information
seanm authored Jul 20, 2023
1 parent 5f0d143 commit b68988d
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 4 deletions.
2 changes: 0 additions & 2 deletions examples/ph5_filtered_writes.c
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,6 @@ write_dataset_no_overlap(hid_t file_id, hid_t dxpl_id)
hsize_t start[EXAMPLE_DSET_DIMS];
hsize_t stride[EXAMPLE_DSET_DIMS];
hsize_t count[EXAMPLE_DSET_DIMS];
size_t i, j;
hid_t dset_id = H5I_INVALID_HID;
hid_t dcpl_id = H5I_INVALID_HID;
hid_t file_dataspace = H5I_INVALID_HID;
Expand Down Expand Up @@ -244,7 +243,6 @@ write_dataset_overlap(hid_t file_id, hid_t dxpl_id)
hsize_t start[EXAMPLE_DSET_DIMS];
hsize_t stride[EXAMPLE_DSET_DIMS];
hsize_t count[EXAMPLE_DSET_DIMS];
size_t i, j;
hid_t dset_id = H5I_INVALID_HID;
hid_t dcpl_id = H5I_INVALID_HID;
hid_t file_dataspace = H5I_INVALID_HID;
Expand Down
1 change: 0 additions & 1 deletion examples/ph5_filtered_writes_no_sel.c
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,6 @@ write_dataset_some_no_sel(hid_t file_id, hid_t dxpl_id)
hsize_t stride[EXAMPLE_DSET_DIMS];
hsize_t count[EXAMPLE_DSET_DIMS];
hbool_t no_selection;
size_t i, j;
hid_t dset_id = H5I_INVALID_HID;
hid_t dcpl_id = H5I_INVALID_HID;
hid_t file_dataspace = H5I_INVALID_HID;
Expand Down
2 changes: 1 addition & 1 deletion testpar/t_vfd.c
Original file line number Diff line number Diff line change
Expand Up @@ -4086,7 +4086,7 @@ main(int argc, char **argv)
int provided = 0;
#endif
int mpi_size;
int mpi_rank;
int mpi_rank = 0;

#ifdef H5_HAVE_SUBFILING_VFD
if (MPI_SUCCESS != MPI_Init_thread(&argc, &argv, required, &provided)) {
Expand Down

0 comments on commit b68988d

Please sign in to comment.