mirror of
https://github.com/HDFGroup/hdf5.git
synced 2025-03-25 17:00:45 +08:00
[svn-r3265] Purpose:
Clean up warnings. Description: Cleaned up a few compiler warnings. Platforms tested: FreeBSD 4.2 (hawkwind)
This commit is contained in:
parent
8e20f98805
commit
c5c4e70311
@ -841,7 +841,8 @@ static herr_t
|
||||
dump_selected_attr(hid_t loc_id, const char *name)
|
||||
{
|
||||
int j;
|
||||
char *obj_name, *attr_name;
|
||||
char *obj_name;
|
||||
const char *attr_name;
|
||||
hid_t oid, attr_id, type, space;
|
||||
H5G_stat_t statbuf;
|
||||
|
||||
@ -1708,7 +1709,7 @@ main(int argc, const char *argv[])
|
||||
h5tools_init();
|
||||
|
||||
/* this will be plenty big enough for holding the info */
|
||||
hand = calloc(argc, sizeof(struct handler_t));
|
||||
hand = calloc((size_t)argc, sizeof(struct handler_t));
|
||||
|
||||
/* parse command line options */
|
||||
while ((opt = get_option(argc, argv, s_opts, l_opts)) != EOF) {
|
||||
|
@ -14,7 +14,6 @@
|
||||
* by Don Libes, copyright (c) 1993 by John Wiley & Sons, Inc.
|
||||
*/
|
||||
|
||||
#include <assert.h>
|
||||
#include <ctype.h>
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
@ -135,7 +134,7 @@ int
|
||||
get_option(int argc, const char **argv, const char *opts, const struct long_options *l_opts)
|
||||
{
|
||||
static int sp = 1; /* character index in current token */
|
||||
int opt_opt; /* option character passed back to user */
|
||||
int opt_opt='?'; /* option character passed back to user */
|
||||
|
||||
if (sp == 1) {
|
||||
/* check for more flag-like tokens */
|
||||
@ -153,7 +152,7 @@ get_option(int argc, const char **argv, const char *opts, const struct long_opti
|
||||
register int i;
|
||||
|
||||
for (i = 0; l_opts && l_opts[i].name; i++) {
|
||||
int len = strlen(l_opts[i].name);
|
||||
size_t len = strlen(l_opts[i].name);
|
||||
|
||||
if (strncmp(arg, l_opts[i].name, len) == 0) {
|
||||
/* we've found a matching long command line flag */
|
||||
@ -2643,7 +2642,7 @@ h5dump_fopen(const char *fname, char *drivername, size_t drivername_size)
|
||||
#ifndef VERSION12
|
||||
driver[ndrivers].name = "family";
|
||||
driver[ndrivers].fapl = fapl = H5Pcreate(H5P_FILE_ACCESS);
|
||||
H5Pset_fapl_family(fapl, 0, H5P_DEFAULT);
|
||||
H5Pset_fapl_family(fapl, (hsize_t)0, H5P_DEFAULT);
|
||||
ndrivers++;
|
||||
|
||||
driver[ndrivers].name = "split";
|
||||
|
Loading…
x
Reference in New Issue
Block a user