summaryrefslogtreecommitdiffstats
path: root/src/H5Eprivate.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/H5Eprivate.h')
-rw-r--r--src/H5Eprivate.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/H5Eprivate.h b/src/H5Eprivate.h
index 0491439..9958002 100644
--- a/src/H5Eprivate.h
+++ b/src/H5Eprivate.h
@@ -68,10 +68,10 @@ typedef struct H5E_t H5E_t;
* control branches to the `done' label.
*/
#define HGOTO_ERROR(maj, min, ret_val, ...) \
- { \
+ do { \
HCOMMON_ERROR(maj, min, __VA_ARGS__); \
HGOTO_DONE(ret_val); \
- }
+ } while (0)
/*
* HGOTO_ERROR_TAG macro, used like HGOTO_ERROR between H5_BEGIN_TAG and