summaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorRuey-Hsia Li <rli@ncsa.uiuc.edu>1998-09-30 22:01:13 (GMT)
committerRuey-Hsia Li <rli@ncsa.uiuc.edu>1998-09-30 22:01:13 (GMT)
commitd809c9309b7fa204ed9f94409228d01087f8b00a (patch)
treeb7496571b6d095ef61af8598bc76ebb20de44247 /tools
parent177e41c9488b9688ac92a79e8163f1cab26870a9 (diff)
downloadhdf5-d809c9309b7fa204ed9f94409228d01087f8b00a.zip
hdf5-d809c9309b7fa204ed9f94409228d01087f8b00a.tar.gz
hdf5-d809c9309b7fa204ed9f94409228d01087f8b00a.tar.bz2
[svn-r732] Disabled error reporting.
Diffstat (limited to 'tools')
-rw-r--r--tools/h5dump.c15
1 files changed, 7 insertions, 8 deletions
diff --git a/tools/h5dump.c b/tools/h5dump.c
index f65f9e2..9d77d63 100644
--- a/tools/h5dump.c
+++ b/tools/h5dump.c
@@ -490,14 +490,9 @@ static herr_t
dump_all (hid_t group, const char *name, void __unused__ *op_data)
{
hid_t obj;
- hid_t (*func)(void*);
- void *edata;
char *buf;
H5G_stat_t statbuf;
- /* Disable error reporting */
- H5Eget_auto (&func, &edata);
- H5Eset_auto (NULL, NULL);
H5Gget_objinfo(group, name, FALSE, &statbuf);
@@ -554,15 +549,12 @@ dump_all (hid_t group, const char *name, void __unused__ *op_data)
default:
printf ("Unknown Object %s\n", name);
status = 1;
- H5Eset_auto (func, edata);
return FAIL;
break;
}
- /* Restore error reporting */
- H5Eset_auto (func, edata);
return SUCCEED;
@@ -819,6 +811,11 @@ int nopts=0, *opts;
char *buf;
H5G_stat_t statbuf;
void __unused__ *op_data;
+ hid_t (*func)(void*);
+ void *edata;
+ /* Disable error reporting */
+ H5Eget_auto (&func, &edata);
+ H5Eset_auto (NULL, NULL);
if (argc < 2 ) {
usage();
@@ -1012,6 +1009,8 @@ void __unused__ *op_data;
free(opts);
+ /* Restore error reporting */
+ H5Eset_auto (func, edata);
if (H5Fclose (fid) < 0) exit(1);
return status;