mirror of
https://github.com/HDFGroup/hdf5.git
synced 2025-04-12 17:31:09 +08:00
[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.
This commit is contained in:
parent
0cdbfd4ccc
commit
8fa2e9bd59
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user