From 4a7834b7c7ed5ed9d9429a0798ed4240d97637cc Mon Sep 17 00:00:00 2001 From: Raymond Lu Date: Fri, 15 May 2009 10:49:55 -0500 Subject: [svn-r16955] Lifted the restrictions that major and minor errors must be in the same class. Tested on jam - simple change. --- src/H5E.c | 8 -------- 1 file changed, 8 deletions(-) diff --git a/src/H5E.c b/src/H5E.c index 6eb7768..dc90a5a 100644 --- a/src/H5E.c +++ b/src/H5E.c @@ -1296,14 +1296,6 @@ H5Epush2(hid_t err_stack, const char *file, const char *func, unsigned line, HGOTO_ERROR(H5E_ARGS, H5E_BADTYPE, FAIL, "not a error stack ID") } /* end else */ - /* Check for mis-matches in major & minor error classes */ - if(NULL == (maj_ptr = (H5E_msg_t *)H5I_object_verify(maj_id, H5I_ERROR_MSG))) - HGOTO_ERROR(H5E_ARGS, H5E_BADTYPE, FAIL, "not a error message ID") - if(NULL == (min_ptr = (H5E_msg_t *)H5I_object_verify(min_id, H5I_ERROR_MSG))) - HGOTO_ERROR(H5E_ARGS, H5E_BADTYPE, FAIL, "not a error message ID") - if(maj_ptr->cls != min_ptr->cls) - HGOTO_ERROR(H5E_ARGS, H5E_UNSUPPORTED, FAIL, "major and minor errors not from same error class") - /* Note that the variable-argument parsing for the format is identical in * the H5E_printf_stack() routine - correct errors and make changes in both * places. -QAK -- cgit v0.12