diff options
author | Bill Wendling <wendling@ncsa.uiuc.edu> | 2001-09-18 16:57:16 (GMT) |
---|---|---|
committer | Bill Wendling <wendling@ncsa.uiuc.edu> | 2001-09-18 16:57:16 (GMT) |
commit | d10d58c0c307bf92a3596da0e72698b8639255f6 (patch) | |
tree | 8ec9b3432d2a5aebe089276f02c5b0c2e1c5bc7d /tools/lib | |
parent | defaf9ac4f21d9958a2c60158f26fa1a6f257147 (diff) | |
download | hdf5-d10d58c0c307bf92a3596da0e72698b8639255f6.zip hdf5-d10d58c0c307bf92a3596da0e72698b8639255f6.tar.gz hdf5-d10d58c0c307bf92a3596da0e72698b8639255f6.tar.bz2 |
[svn-r4455]
Purpose:
Warning Removal
Description:
Remove some spurious warnings from the compilation.
Platforms tested:
Linux
Diffstat (limited to 'tools/lib')
-rw-r--r-- | tools/lib/h5tools.c | 14 | ||||
-rw-r--r-- | tools/lib/h5tools_str.c | 4 |
2 files changed, 9 insertions, 9 deletions
diff --git a/tools/lib/h5tools.c b/tools/lib/h5tools.c index c48236a..569fe2f 100644 --- a/tools/lib/h5tools.c +++ b/tools/lib/h5tools.c @@ -175,18 +175,18 @@ h5tools_fopen(const char *fname, const char *driver, char *drivername, /* This enum should match the entries in the above drivers_list since they * are indexes into the drivers_list array. */ enum { - SEC2_IDX = 0, - FAMILY_IDX, - SPLIT_IDX, - MULTI_IDX, + SEC2_IDX = 0 + ,FAMILY_IDX + ,SPLIT_IDX + ,MULTI_IDX #ifdef H5_HAVE_STREAM - STREAM_IDX + ,STREAM_IDX #endif /* H5_HAVE_STREAM */ }; #define NUM_DRIVERS (sizeof(drivers_list) / sizeof(struct d_list)) static int initialized = 0; - register int drivernum; + register unsigned drivernum; hid_t fid = FAIL; #ifndef VERSION12 hid_t fapl = H5P_DEFAULT; @@ -606,7 +606,7 @@ h5tools_dump_simple_subset(FILE *stream, const h5dump_t *info, hid_t dset, { herr_t ret; /*the value to return */ hid_t f_space; /*file data space */ - hsize_t elmtno, i; /*counters */ + hsize_t i; /*counters */ hssize_t zero = 0; /*vector of zeros */ unsigned int flags; /*buffer extent flags */ hsize_t total_size[H5S_MAX_RANK];/*total size of dataset*/ diff --git a/tools/lib/h5tools_str.c b/tools/lib/h5tools_str.c index e594ebd..0e3c5c7 100644 --- a/tools/lib/h5tools_str.c +++ b/tools/lib/h5tools_str.c @@ -540,7 +540,7 @@ h5tools_str_sprint(h5tools_str_t *str, const h5dump_t *info, hid_t container, h5tools_str_append(str, OPT(info->fmt_double, "%g"), tempdouble); } else if (info->ascii && (H5Tequal(type, H5T_NATIVE_SCHAR) || H5Tequal(type, H5T_NATIVE_UCHAR))) { - h5tools_print_char(str, info, *ucp_vp); + h5tools_print_char(str, info, (unsigned char)(*ucp_vp)); } else if (H5T_STRING == H5Tget_class(type)) { unsigned int i; @@ -578,7 +578,7 @@ h5tools_str_sprint(h5tools_str_t *str, const h5dump_t *info, hid_t container, } /* Print the character */ - h5tools_print_char(str, info, ucp_vp[i]); + h5tools_print_char(str, info, (unsigned char)(ucp_vp[i])); /* Print the repeat count */ if (info->str_repeat && j > info->str_repeat) { |