From 8fa2e9bd598bbbfecc85a9ed9b3511bc40342fe6 Mon Sep 17 00:00:00 2001 From: Robb Matzke Date: Fri, 7 Apr 2000 10:26:30 -0500 Subject: [svn-r2088] * 2000-01-26 ** src/H5Epublic.h Removed `do{...}while(0)' from H5E_BEGIN/END_TRY macros to get rid of a warning about the constant expression. --- src/H5Epublic.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/H5Epublic.h b/src/H5Epublic.h index d3790e9..da23135 100644 --- a/src/H5Epublic.h +++ b/src/H5Epublic.h @@ -36,7 +36,7 @@ * Warning: don't break, return, or longjmp() from the body of the loop or * the error reporting won't be properly restored! */ -#define H5E_BEGIN_TRY do { \ +#define H5E_BEGIN_TRY { \ herr_t (*H5E_saved_efunc)(void*); \ void *H5E_saved_edata; \ H5Eget_auto (&H5E_saved_efunc, &H5E_saved_edata); \ @@ -44,7 +44,7 @@ #define H5E_END_TRY \ H5Eset_auto (H5E_saved_efunc, H5E_saved_edata); \ -} while(0) +} /* * Public API Convenience Macros for Error reporting - Documented -- cgit v0.12