summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMohamad Chaarawi <chaarawi@hdfgroup.org>2015-03-25 14:40:34 (GMT)
committerMohamad Chaarawi <chaarawi@hdfgroup.org>2015-03-25 14:40:34 (GMT)
commitae82c4361031517990b44a8b80de5d5ac2be2123 (patch)
tree45e21bf1f2ba3a1fd69cea71c38e14155bb7db3d /src
parent5d9c34406afad17f64a8feb8d5b46114286989f0 (diff)
downloadhdf5-ae82c4361031517990b44a8b80de5d5ac2be2123.zip
hdf5-ae82c4361031517990b44a8b80de5d5ac2be2123.tar.gz
hdf5-ae82c4361031517990b44a8b80de5d5ac2be2123.tar.bz2
[svn-r26573] merge 24270 from trunk, introducing NORETURN.
tested with h5committest.
Diffstat (limited to 'src')
-rw-r--r--src/H5private.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/H5private.h b/src/H5private.h
index c4e3d02..805eb0b 100644
--- a/src/H5private.h
+++ b/src/H5private.h
@@ -283,12 +283,15 @@
#ifdef __cplusplus
# define __attribute__(X) /*void*/
# define UNUSED /*void*/
+# define NORETURN /*void*/
#else /* __cplusplus */
#ifdef H5_HAVE_ATTRIBUTE
# define UNUSED __attribute__((unused))
+# define NORETURN __attribute__((noreturn))
#else
# define __attribute__(X) /*void*/
# define UNUSED /*void*/
+# define NORETURN /*void*/
#endif
#endif /* __cplusplus */