summaryrefslogtreecommitdiffstats
path: root/tools/src/h5ls/h5ls.c
diff options
context:
space:
mode:
authorAllen Byrne <byrn@hdfgroup.org>2019-12-06 19:55:34 (GMT)
committerAllen Byrne <byrn@hdfgroup.org>2019-12-06 19:55:34 (GMT)
commitfce2a31dc5f44f821dd4587f530ef18ce9e424de (patch)
treef1ef237f3f447ebe0c4b1b69e9eee63e68e1aa0d /tools/src/h5ls/h5ls.c
parent52c9749d6f6f1d6704fc78373e83bcb8c1abac1e (diff)
downloadhdf5-fce2a31dc5f44f821dd4587f530ef18ce9e424de.zip
hdf5-fce2a31dc5f44f821dd4587f530ef18ce9e424de.tar.gz
hdf5-fce2a31dc5f44f821dd4587f530ef18ce9e424de.tar.bz2
Address compile warnings
Diffstat (limited to 'tools/src/h5ls/h5ls.c')
-rw-r--r--tools/src/h5ls/h5ls.c18
1 files changed, 0 insertions, 18 deletions
diff --git a/tools/src/h5ls/h5ls.c b/tools/src/h5ls/h5ls.c
index 416d5d2..6c21782 100644
--- a/tools/src/h5ls/h5ls.c
+++ b/tools/src/h5ls/h5ls.c
@@ -1527,17 +1527,12 @@ dump_dataset_values(hid_t dset)
H5TOOLS_ERR_INIT(herr_t, SUCCEED)
hid_t f_type = H5I_INVALID_HID;
hid_t space = H5I_INVALID_HID;
- hid_t new_obj_id = H5I_INVALID_HID;
- hid_t new_obj_sid = H5I_INVALID_HID;
hsize_t total_size[H5S_MAX_RANK];
- hsize_t nelmts = 1;
- hsize_t elmt_counter = 0; /*counts the # elements printed. */
int ndims;
size_t i;
char string_prefix[64];
static char fmt_double[16];
static char fmt_float[16];
- size_t ncols = 80; /* available output width */
hsize_t curr_pos = 0; /* total data element position */
h5tools_str_t buffer; /* string into which to render */
h5tools_context_t ctx; /* print context */
@@ -1703,22 +1698,13 @@ dump_attribute_values(hid_t attr, const char *attr_name)
{
H5TOOLS_ERR_INIT(herr_t, SUCCEED)
hid_t f_type = H5I_INVALID_HID;
- hid_t p_type = H5I_INVALID_HID;
hid_t space = H5I_INVALID_HID;
- hid_t new_obj_id = H5I_INVALID_HID;
- hid_t new_obj_sid = H5I_INVALID_HID;
hsize_t total_size[H5S_MAX_RANK];
- hsize_t nelmts = 1;
- hsize_t elmt_counter = 0; /*counts the # elements printed. */
- hsize_t temp_need;
- size_t need;
int ndims;
size_t i;
- void *buf;
char string_prefix[64];
static char fmt_double[16];
static char fmt_float[16];
- size_t ncols = 80; /* available output width */
hsize_t curr_pos = 0; /* total data element position */
h5tools_str_t buffer; /* string into which to render */
h5tools_context_t ctx; /* print context */
@@ -1894,18 +1880,14 @@ list_attr(hid_t obj, const char *attr_name, const H5A_info_t H5_ATTR_UNUSED *ain
hid_t attr = H5I_INVALID_HID;
hid_t space = H5I_INVALID_HID;
hid_t type = H5I_INVALID_HID;
- hid_t new_obj_id = H5I_INVALID_HID;
- hid_t new_obj_sid = H5I_INVALID_HID;
hsize_t size[H5S_MAX_RANK];
hsize_t nelmts = 1;
int ndims;
int i;
H5S_class_t space_type;
hsize_t curr_pos = 0; /* total data element position */
- hsize_t elmt_counter = 0; /*counts the # elements printed. */
h5tools_str_t buffer; /* string into which to render */
h5tools_context_t ctx; /* print context */
- size_t ncols = 80; /* available output width */
h5tool_format_t *info = &ls_dataformat;
H5TOOLS_PUSH_STACK();