summaryrefslogtreecommitdiffstats
path: root/tools/h5import
diff options
context:
space:
mode:
authorQuincey Koziol <koziol@hdfgroup.org>2003-06-09 19:18:47 (GMT)
committerQuincey Koziol <koziol@hdfgroup.org>2003-06-09 19:18:47 (GMT)
commitdf5ca0fa1d78779cfdc23ace1919c6ff8828222d (patch)
tree6cab126644093f122511c248ceead1c9d6318d7b /tools/h5import
parent3fcef502ea6188b243b1907d04e4cbe9d351bd8a (diff)
downloadhdf5-df5ca0fa1d78779cfdc23ace1919c6ff8828222d.zip
hdf5-df5ca0fa1d78779cfdc23ace1919c6ff8828222d.tar.gz
hdf5-df5ca0fa1d78779cfdc23ace1919c6ff8828222d.tar.bz2
[svn-r7002] Purpose:
Code cleanup Description: Clean up warnings about unused stuff... Platforms tested: FreeBSD 4.8 (sleipnir) h5committest
Diffstat (limited to 'tools/h5import')
-rwxr-xr-xtools/h5import/h5import.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/tools/h5import/h5import.c b/tools/h5import/h5import.c
index 8046ddf..20dc785 100755
--- a/tools/h5import/h5import.c
+++ b/tools/h5import/h5import.c
@@ -28,7 +28,7 @@ int main(int argc, char *argv[])
int token;
int i;
int state = 0;
- struct Input *in;
+ struct Input *in=NULL;
const char *err1 = "Invalid number of arguments: %d.\n";
const char *err2 = "Error in state table.\n";
@@ -1851,7 +1851,7 @@ setDefaultValues(struct Input *in, int count)
hid_t
createOutputDataType(struct Input in)
{
- hid_t new_type;
+ hid_t new_type = (-1);
const char *err1 = "Invalid value for output class.\n";
switch (in.outputClass)
@@ -2093,7 +2093,7 @@ createOutputDataType(struct Input in)
hid_t
createInputDataType(struct Input in)
{
- hid_t new_type;
+ hid_t new_type = (-1);
const char *err1 = "Invalid value for input class.\n";
switch (in.inputClass)
@@ -2172,7 +2172,7 @@ process(struct Options *opt)
{
struct Input *in;
hid_t file_id, group_id, handle;
- hid_t dataset, dataspace;
+ hid_t dataset, dataspace = (-1);
FILE *strm, *extfile;
hid_t intype, outtype;
hid_t proplist;
@@ -2285,7 +2285,7 @@ process(struct Options *opt)
return (-1);
}
HDfclose(extfile);
- H5Pset_external (proplist, in->externFilename, 0, numOfElements * in->inputSize / 8);
+ H5Pset_external (proplist, in->externFilename, (off_t)0, numOfElements * in->inputSize / 8);
}
/* create dataspace */