mirror of
https://github.com/HDFGroup/hdf5.git
synced 2025-03-13 16:47:58 +08:00
[svn-r11742] Purpose: Minor correction.
Description: H5Eset_auto_stack() and H5Eset_auto() used FUNC_ENTER_API. It would clear the error stack from the previous API call. It's better to use FUNC_ENTER_API_NOCLEAR to avoid clearing the stack. Platforms tested: fuss - simple change.
This commit is contained in:
parent
0f870b0f47
commit
5125354f7e
@ -2419,7 +2419,8 @@ H5Eset_auto(H5E_auto_t func, void *client_data)
|
||||
H5E_t *estack; /* Error stack to operate on */
|
||||
herr_t ret_value=SUCCEED; /* Return value */
|
||||
|
||||
FUNC_ENTER_API(H5Eset_auto, FAIL)
|
||||
/* Don't clear the error stack! :-) */
|
||||
FUNC_ENTER_API_NOCLEAR(H5Eset_auto, FAIL)
|
||||
H5TRACE2("e","xx",func,client_data);
|
||||
|
||||
if((estack = H5E_get_my_stack())==NULL) /*lint !e506 !e774 Make lint 'constant value Boolean' in non-threaded case */
|
||||
@ -2466,7 +2467,8 @@ H5Eset_auto_stack(hid_t estack_id, H5E_auto_stack_t func, void *client_data)
|
||||
H5E_t *estack; /* Error stack to operate on */
|
||||
herr_t ret_value=SUCCEED; /* Return value */
|
||||
|
||||
FUNC_ENTER_API(H5Eset_auto_stack, FAIL)
|
||||
/* Don't clear the error stack! :-) */
|
||||
FUNC_ENTER_API_NOCLEAR(H5Eset_auto_stack, FAIL)
|
||||
H5TRACE3("e","ixx",estack_id,func,client_data);
|
||||
|
||||
if(estack_id == H5E_DEFAULT) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user