diff options
author | Dana Robinson <derobins@hdfgroup.org> | 2019-09-24 10:20:30 (GMT) |
---|---|---|
committer | Dana Robinson <derobins@hdfgroup.org> | 2019-09-24 10:20:30 (GMT) |
commit | 6eb506eff76b5455f8aac8889c6809aca2d8be52 (patch) | |
tree | 8a019b76be92187369b82e128e7dea7f6fe79443 /src/H5EAcache.c | |
parent | 40b2eae5e961c7f40b483ace05d3cf2b35d1fb62 (diff) | |
download | hdf5-6eb506eff76b5455f8aac8889c6809aca2d8be52.zip hdf5-6eb506eff76b5455f8aac8889c6809aca2d8be52.tar.gz hdf5-6eb506eff76b5455f8aac8889c6809aca2d8be52.tar.bz2 |
Revert "Moved NDEBUG guards to H5EA_DEBUG in H5EA package."
This reverts commit 431123503d387bce30b1f6db7dc4ad3a33bc51bb.
Diffstat (limited to 'src/H5EAcache.c')
-rw-r--r-- | src/H5EAcache.c | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/src/H5EAcache.c b/src/H5EAcache.c index d55a2b4..da67e6b 100644 --- a/src/H5EAcache.c +++ b/src/H5EAcache.c @@ -581,7 +581,11 @@ H5EA__cache_hdr_notify(H5AC_notify_action_t action, void *_thing)) break; default: +#ifdef NDEBUG H5E_THROW(H5E_BADVALUE, "unknown action from metadata cache") +#else /* NDEBUG */ + HDassert(0 && "Unknown action?!?"); +#endif /* NDEBUG */ } /* end switch */ } /* end if */ else @@ -974,7 +978,11 @@ H5EA__cache_iblock_notify(H5AC_notify_action_t action, void *_thing)) break; default: +#ifdef NDEBUG H5E_THROW(H5E_BADVALUE, "unknown action from metadata cache") +#else /* NDEBUG */ + HDassert(0 && "Unknown action?!?"); +#endif /* NDEBUG */ } /* end switch */ CATCH @@ -1382,7 +1390,11 @@ H5EA__cache_sblock_notify(H5AC_notify_action_t action, void *_thing)) break; default: +#ifdef NDEBUG H5E_THROW(H5E_BADVALUE, "unknown action from metadata cache") +#else /* NDEBUG */ + HDassert(0 && "Unknown action?!?"); +#endif /* NDEBUG */ } /* end switch */ CATCH @@ -1791,7 +1803,11 @@ H5EA__cache_dblock_notify(H5AC_notify_action_t action, void *_thing)) break; default: +#ifdef NDEBUG H5E_THROW(H5E_BADVALUE, "unknown action from metadata cache") +#else /* NDEBUG */ + HDassert(0 && "Unknown action?!?"); +#endif /* NDEBUG */ } /* end switch */ CATCH @@ -2168,7 +2184,11 @@ H5EA__cache_dblk_page_notify(H5AC_notify_action_t action, void *_thing)) break; default: +#ifdef NDEBUG H5E_THROW(H5E_BADVALUE, "unknown action from metadata cache") +#else /* NDEBUG */ + HDassert(0 && "Unknown action?!?"); +#endif /* NDEBUG */ } /* end switch */ CATCH |