Mercurial > hg > octave-nkf
diff libinterp/corefcn/load-save.cc @ 17755:9c03b071fd7b
avoid HDF5 error message at exit (bug #37713)
* load-save.h, load-save.cc (octave_prepare_hdf5,
octave_finalize_hdf5): New functions.
* octave.cc (octave_execute_interpreter): Call octave_prepare_hdf5.
* toplev.cc (do_octave_atexit): Call octave_finalize_hdf5.
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Thu, 24 Oct 2013 17:13:02 -0400 |
parents | d63878346099 |
children | 175b392e91fe |
line wrap: on
line diff
--- a/libinterp/corefcn/load-save.cc +++ b/libinterp/corefcn/load-save.cc @@ -1268,6 +1268,22 @@ } } +void +octave_prepare_hdf5 (void) +{ +#ifdef HAVE_HDF5 + H5dont_atexit (); +#endif +} + +void +octave_finalize_hdf5 (void) +{ +#ifdef HAVE_HDF5 + H5close (); +#endif +} + static void save_vars (const string_vector& argv, int argv_idx, int argc, std::ostream& os, load_save_format fmt,