diff options
Diffstat (limited to 'tools')
-rw-r--r-- | tools/lib/h5diff.c | 1 | ||||
-rw-r--r-- | tools/lib/h5diff_array.c | 1 | ||||
-rw-r--r-- | tools/lib/h5tools_dump.c | 7 | ||||
-rw-r--r-- | tools/src/h5ls/h5ls.c | 18 |
4 files changed, 3 insertions, 24 deletions
diff --git a/tools/lib/h5diff.c b/tools/lib/h5diff.c index b22af18..b2c19fe 100644 --- a/tools/lib/h5diff.c +++ b/tools/lib/h5diff.c @@ -274,7 +274,6 @@ build_match_list (const char *objname1, trav_info_t *info1, const char *objname2 int cmp; trav_table_t *table = NULL; size_t idx; - int ret_value = 0; h5difftrace("build_match_list start\n"); /* init */ diff --git a/tools/lib/h5diff_array.c b/tools/lib/h5diff_array.c index c83b88d..aeb4f95 100644 --- a/tools/lib/h5diff_array.c +++ b/tools/lib/h5diff_array.c @@ -2258,7 +2258,6 @@ static hsize_t character_compare_opt(unsigned char *mem1, unsigned char *mem2, unsigned char temp1_uchar; unsigned char temp2_uchar; double per; - hbool_t both_zero; HDmemcpy(&temp1_uchar, mem1, sizeof(unsigned char)); HDmemcpy(&temp2_uchar, mem2, sizeof(unsigned char)); diff --git a/tools/lib/h5tools_dump.c b/tools/lib/h5tools_dump.c index 41c5878..4a18785 100644 --- a/tools/lib/h5tools_dump.c +++ b/tools/lib/h5tools_dump.c @@ -3977,7 +3977,6 @@ h5tools_dump_data(FILE *stream, const h5tool_format_t *info, h5tools_context_t * hsize_t total_size[H5S_MAX_RANK]; hsize_t elmt_counter = 0; /*counts the # elements printed. */ int status = -1; - hbool_t dimension_break; h5tools_str_t buffer; /* string into which to render */ hsize_t curr_pos = 0; /* total data element position */ size_t ncols = 80; /* available output width */ @@ -4195,13 +4194,13 @@ h5tools_dump_data(FILE *stream, const h5tool_format_t *info, h5tools_context_t * if(region_type == H5S_SEL_POINTS) { /* Print point information */ H5TOOLS_DEBUG(H5E_tools_min_dbg_id_g, "H5S_SEL_POINTS H5R_DATASET_REGION2"); - dimension_break = h5tools_dump_region_data_points(new_obj_sid, new_obj_id, stream, &outputformat, &datactx, + h5tools_dump_region_data_points(new_obj_sid, new_obj_id, stream, &outputformat, &datactx, &buffer, &curr_pos, ncols, i, elmt_counter); } else if(region_type == H5S_SEL_HYPERSLABS) { /* Print block information */ H5TOOLS_DEBUG(H5E_tools_min_dbg_id_g, "H5S_SEL_HYPERSLABS H5R_DATASET_REGION2"); - dimension_break = h5tools_dump_region_data_blocks(new_obj_sid, new_obj_id, stream, &outputformat, &datactx, + h5tools_dump_region_data_blocks(new_obj_sid, new_obj_id, stream, &outputformat, &datactx, &buffer, &curr_pos, ncols, i, elmt_counter); } else @@ -4221,7 +4220,7 @@ h5tools_dump_data(FILE *stream, const h5tool_format_t *info, h5tools_context_t * case H5R_ATTR: H5TOOLS_DEBUG(H5E_tools_min_dbg_id_g, "ref_type is H5R_ATTR"); if((new_obj_id = H5Ropen_attr((const H5R_ref_t *)&ref_buf[i], H5P_DEFAULT, H5P_DEFAULT)) >= 0) { - dimension_break = h5tools_dump_region_attribute(new_obj_id, stream, &outputformat, &datactx, + h5tools_dump_region_attribute(new_obj_id, stream, &outputformat, &datactx, &buffer, &curr_pos, ncols, i, elmt_counter); if(H5Aclose(new_obj_id) < 0) H5TOOLS_ERROR(H5E_tools_g, H5E_tools_min_id_g, "H5Aclose H5R_ATTR failed"); 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(); |