diff options
Diffstat (limited to 'hl/tools')
-rw-r--r-- | hl/tools/gif2h5/hdf2gif.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/hl/tools/gif2h5/hdf2gif.c b/hl/tools/gif2h5/hdf2gif.c index e03d5c4..8ed05df 100644 --- a/hl/tools/gif2h5/hdf2gif.c +++ b/hl/tools/gif2h5/hdf2gif.c @@ -48,6 +48,8 @@ FILE *fpGif = NULL; int main(int argc , char **argv) { BYTE *Image; + void *edata; + H5E_auto2_t func; /* compression structs */ CHAR *HDFName = NULL; @@ -73,6 +75,10 @@ int main(int argc , char **argv) char *image_name = NULL; int idx; + /* Disable error reporting */ + H5Eget_auto2(H5E_DEFAULT, &func, &edata); + H5Eset_auto2(H5E_DEFAULT, NULL, NULL); + /* Initialize h5tools lib */ h5tools_init(); @@ -330,6 +336,8 @@ int main(int argc , char **argv) if (image_name != NULL) free(image_name); + H5Eset_auto2(H5E_DEFAULT, func, edata); + return EXIT_SUCCESS; @@ -340,5 +348,7 @@ out: if (image_name != NULL) free(image_name); + H5Eset_auto2(H5E_DEFAULT, func, edata); + return EXIT_FAILURE; } |