summaryrefslogtreecommitdiffstats
path: root/tools/lib/h5tools_str.c
diff options
context:
space:
mode:
authorAllen Byrne <byrn@hdfgroup.org>2020-07-30 16:25:24 (GMT)
committerAllen Byrne <byrn@hdfgroup.org>2020-07-30 16:26:14 (GMT)
commitff4a9d0ec2e85cf15f769006e92e756a79869ab8 (patch)
tree1f6654046dcc7f47103dcf24e8e5fe1f50035434 /tools/lib/h5tools_str.c
parent2ece66e999876e78dcc8561ee2a2122e88fb14a1 (diff)
downloadhdf5-ff4a9d0ec2e85cf15f769006e92e756a79869ab8.zip
hdf5-ff4a9d0ec2e85cf15f769006e92e756a79869ab8.tar.gz
hdf5-ff4a9d0ec2e85cf15f769006e92e756a79869ab8.tar.bz2
Warnings reduction in tools
Diffstat (limited to 'tools/lib/h5tools_str.c')
-rw-r--r--tools/lib/h5tools_str.c16
1 files changed, 7 insertions, 9 deletions
diff --git a/tools/lib/h5tools_str.c b/tools/lib/h5tools_str.c
index d612fbd..1c573a7 100644
--- a/tools/lib/h5tools_str.c
+++ b/tools/lib/h5tools_str.c
@@ -286,17 +286,14 @@ h5tools_str_prefix(h5tools_str_t *str/*in,out*/, const h5tool_format_t *info, hs
h5tools_context_t *ctx)
{
size_t i = 0;
- hsize_t curr_pos = elmtno;
H5TOOLS_START_DEBUG("");
H5TOOLS_DEBUG("elmtno=%ld, ctx->ndims=%d", elmtno, ctx->ndims);
h5tools_str_reset(str);
- curr_pos = calc_acc_pos(ctx->ndims, elmtno, ctx->acc, ctx->pos);
+ calc_acc_pos(ctx->ndims, elmtno, ctx->acc, ctx->pos);
if(ctx->ndims > 0) {
- HDassert(curr_pos == 0);
-
/* Print the index values */
for(i = 0; i < (size_t) ctx->ndims; i++) {
if (i)
@@ -329,17 +326,14 @@ h5tools_str_region_prefix(h5tools_str_t *str/*in,out*/, const h5tool_format_t *i
hsize_t *ptdata, h5tools_context_t *ctx)
{
size_t i = 0;
- hsize_t curr_pos = elmtno;
H5TOOLS_START_DEBUG("");
H5TOOLS_DEBUG("elmtno=%ld, ctx->ndims=%d", elmtno, ctx->ndims);
h5tools_str_reset(str);
- curr_pos = calc_acc_pos(ctx->ndims, elmtno, ctx->acc, ctx->pos);
+ calc_acc_pos(ctx->ndims, elmtno, ctx->acc, ctx->pos);
if(ctx->ndims > 0) {
- HDassert(curr_pos == 0);
-
/* Print the index values */
for(i = 0; i < (size_t) ctx->ndims; i++) {
ctx->pos[i] += (unsigned long) ptdata[ctx->sm_pos+i];
@@ -678,6 +672,7 @@ h5tools_str_sprint(h5tools_str_t *str, const h5tool_format_t *info, hid_t contai
if(info->raw) {
size_t i;
+ H5TOOLS_DEBUG("info->raw");
if(1 == nsize)
h5tools_str_append(str, OPT(info->fmt_raw, "0x%02x"), ucp_vp[0]);
else
@@ -688,8 +683,11 @@ h5tools_str_sprint(h5tools_str_t *str, const h5tool_format_t *info, hid_t contai
}
}
else {
- if((type_class = H5Tget_class(type)) < 0)
+ H5TOOLS_DEBUG("H5Tget_class(type)");
+ if((type_class = H5Tget_class(type)) < 0) {
+ H5TOOLS_ENDDEBUG(" with %s", "NULL");
return NULL;
+ }
switch (type_class) {
case H5T_FLOAT:
H5TOOLS_DEBUG("H5T_FLOAT");