Suppressing error output?

H5Eset_auto2(H5E_DEFAULT, NULL, NULL) should do the trick. G.