From de0152cb621a8ff7db715959f61ba5c380fa46b7 Mon Sep 17 00:00:00 2001 From: Erik Schnetter Date: Fri, 18 Jan 2013 16:59:55 -0500 Subject: CarpetIOHDF5: Remove unused variables, initialise other variable to avoid compiler warnings --- Carpet/CarpetIOHDF5/src/Output.cc | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) (limited to 'Carpet/CarpetIOHDF5') diff --git a/Carpet/CarpetIOHDF5/src/Output.cc b/Carpet/CarpetIOHDF5/src/Output.cc index a6ac668cf..24b5cf7a0 100644 --- a/Carpet/CarpetIOHDF5/src/Output.cc +++ b/Carpet/CarpetIOHDF5/src/Output.cc @@ -443,11 +443,9 @@ int WriteVarChunkedSequential (const cGH* const cctkGH, } hsize_t shape[dim]; - hssize_t origin[dim]; hsize_t hyperslab_start[dim], hyperslab_count[dim]; for (int d = 0; d < group.dim; ++d) { assert (group.dim-1-d>=0 and group.dim-1-dpadded_shape()[d]; assert (all (processor_component->shape() == bbox.shape() / bbox.stride())); @@ -456,7 +454,7 @@ int WriteVarChunkedSequential (const cGH* const cctkGH, } // Write the component as an individual dataset - hid_t plist, dataspace, dataset, index_dataset; + hid_t plist, dataspace, dataset, index_dataset = -1; HDF5_ERROR (plist = H5Pcreate (H5P_DATASET_CREATE)); // enable compression if requested const int compression_lvl = request->compression_level >= 0 ? @@ -638,11 +636,9 @@ int WriteVarChunkedParallel (const cGH* const cctkGH, // Get the shape of the HDF5 dataset (in Fortran index order) hsize_t shape[dim]; - hssize_t origin[dim]; hsize_t hyperslab_start[dim], hyperslab_count[dim]; for (int d = 0; d < group.dim; ++d) { assert (group.dim-1-d>=0 and group.dim-1-dpadded_shape()[d]; assert (all (processor_component->shape() == bbox.shape() / bbox.stride())); @@ -651,7 +647,7 @@ int WriteVarChunkedParallel (const cGH* const cctkGH, } // Write the component as an individual dataset - hid_t plist, dataspace, dataset, index_dataset; + hid_t plist, dataspace, dataset, index_dataset = -1; HDF5_ERROR (plist = H5Pcreate (H5P_DATASET_CREATE)); // enable compression if requested const int compression_lvl = request->compression_level >= 0 ? -- cgit v1.2.3