diff options
author | Dana Robinson <derobins@hdfgroup.org> | 2017-05-25 13:47:20 (GMT) |
---|---|---|
committer | Dana Robinson <derobins@hdfgroup.org> | 2017-05-25 13:47:20 (GMT) |
commit | 291b107d4d56528082db5344d8783941154e8374 (patch) | |
tree | 7a44abd31b9e46d332f2c884e62f661e95b1b04f /tools/lib | |
parent | a33859d6774f73c0bb31386eedfde2aaf222427b (diff) | |
download | hdf5-291b107d4d56528082db5344d8783941154e8374.zip hdf5-291b107d4d56528082db5344d8783941154e8374.tar.gz hdf5-291b107d4d56528082db5344d8783941154e8374.tar.bz2 |
Minor warning fixes in the tools.
Diffstat (limited to 'tools/lib')
-rw-r--r-- | tools/lib/h5tools.h | 2 | ||||
-rw-r--r-- | tools/lib/h5tools_str.c | 7 |
2 files changed, 5 insertions, 4 deletions
diff --git a/tools/lib/h5tools.h b/tools/lib/h5tools.h index 3d38dd0..6383df5 100644 --- a/tools/lib/h5tools.h +++ b/tools/lib/h5tools.h @@ -522,7 +522,7 @@ typedef struct h5tools_context_t { hsize_t acc[H5S_MAX_RANK]; /* accumulator position */ hsize_t pos[H5S_MAX_RANK]; /* matrix position */ hsize_t sm_pos; /* current stripmine element position */ - struct H5LD_memb_t **cmpd_listv; /* h5watch: vector containing info about the list of compound fields to be printed */ + const struct H5LD_memb_t * const *cmpd_listv; /* h5watch: vector containing info about the list of compound fields to be printed */ } h5tools_context_t; typedef struct subset_d { diff --git a/tools/lib/h5tools_str.c b/tools/lib/h5tools_str.c index b7a2c1e..fa15785 100644 --- a/tools/lib/h5tools_str.c +++ b/tools/lib/h5tools_str.c @@ -1000,10 +1000,11 @@ h5tools_str_sprint(h5tools_str_t *str, const h5tool_format_t *info, hid_t contai case H5T_COMPOUND: if(ctx->cmpd_listv) { /* there is <list_of_fields> */ - int save_indent_level; /* The indentation level */ + unsigned save_indent_level; /* The indentation level */ size_t curr_field; /* Current field to display */ - int i = 0, x = 0; /* Local index variable */ - H5LD_memb_t **listv; /* Vector of information for <list_of_fields> */ + int i = 0; /* Local index variable */ + unsigned x = 0; /* Local index variable */ + const H5LD_memb_t * const *listv; /* Vector of information for <list_of_fields> */ listv = ctx->cmpd_listv; ctx->cmpd_listv = NULL; |