summaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorPaul Harten <pharten@ncsa.uiuc.edu>1999-02-17 18:43:20 (GMT)
committerPaul Harten <pharten@ncsa.uiuc.edu>1999-02-17 18:43:20 (GMT)
commit04fd81482dc32fe7578b0d78808800707042f2d2 (patch)
treef76792ff4de1bdf835d01a20bbe4f3995f4a97b5 /tools
parent6301b4c4ed392c4626add49f4420d55cd9b70b9d (diff)
downloadhdf5-04fd81482dc32fe7578b0d78808800707042f2d2.zip
hdf5-04fd81482dc32fe7578b0d78808800707042f2d2.tar.gz
hdf5-04fd81482dc32fe7578b0d78808800707042f2d2.tar.bz2
[svn-r1074] Purpose:
Bug Fixes Problem: Warnings given during compilation on some machines. Solution: Take care of various Compiler Warnings such as: 1) uninitialized variables; 2) unreachable statements. Platforms tested: Solaris2.5, Linux, Irix6.5
Diffstat (limited to 'tools')
-rw-r--r--tools/h5toh4.c18
1 files changed, 9 insertions, 9 deletions
diff --git a/tools/h5toh4.c b/tools/h5toh4.c
index 64e60b3..1568e5b 100644
--- a/tools/h5toh4.c
+++ b/tools/h5toh4.c
@@ -1251,19 +1251,19 @@ H5T_str_t strpad;
status = FAIL;
}
+ if ((status = H5Tclose(type)) != SUCCEED ) {
+ fprintf(stderr, "Error: Problems closing H5Tclose\n");
+ DEBUG_PRINT("Error detected in %s() [%s line %d]\n", "convert_attr", __FILE__, __LINE__);
+ status = FAIL;
+ return status;
+ }
+
} else {
status = FAIL;
}
- if ((status = H5Tclose(type)) != SUCCEED ) {
- fprintf(stderr, "Error: Problems closing H5Tclose\n");
- DEBUG_PRINT("Error detected in %s() [%s line %d]\n", "convert_attr", __FILE__, __LINE__);
- status = FAIL;
- return status;
- }
-
return status;
}
@@ -1579,7 +1579,6 @@ convert_all (hid_t group, char *name, op_data_t *op_data)
default:
fprintf (stderr,"Unknown Object %s\n", name);
status = FAIL;
- return status;
break;
}
@@ -1779,7 +1778,7 @@ convert_shared_group (hid_t group, int idx, op_data_t *op_data) {
int32 vgroup_id;
int32 vgroup_ref;
int32 numtagref;
- int32 status;
+ int32 status = SUCCEED;
hid_t group2;
char *group_name=NULL;
char *group_name2=NULL;
@@ -1791,6 +1790,7 @@ convert_shared_group (hid_t group, int idx, op_data_t *op_data) {
if ((group_name = get_objectname(H5G_GROUP, idx)) == NULL ) {
fprintf(stderr,"Error: get_objectname() did not work\n");
DEBUG_PRINT("Error detected in %s() [%s line %d]\n", "convert_shared_group", __FILE__, __LINE__);
+ status = FAIL;
return (status);
}