summaryrefslogtreecommitdiffstats
path: root/src/H5private.h
diff options
context:
space:
mode:
authorMohamad Chaarawi <chaarawi@hdfgroup.org>2015-06-03 14:14:29 (GMT)
committerMohamad Chaarawi <chaarawi@hdfgroup.org>2015-06-03 14:14:29 (GMT)
commitc34e8ef85220b70d3eeed352b4320710f74f4cf9 (patch)
treea3fa038f07c5d68a11bbabd8849422c2eedffd5c /src/H5private.h
parent9e96a8a0d691db8207ea2e6bfca66510e035c312 (diff)
parentfc45d5fcb05fbf1b9ee05a46a25afc6fd6c40503 (diff)
downloadhdf5-c34e8ef85220b70d3eeed352b4320710f74f4cf9.zip
hdf5-c34e8ef85220b70d3eeed352b4320710f74f4cf9.tar.gz
hdf5-c34e8ef85220b70d3eeed352b4320710f74f4cf9.tar.bz2
[svn-r27141] merge from trunk.
Diffstat (limited to 'src/H5private.h')
-rw-r--r--src/H5private.h11
1 files changed, 3 insertions, 8 deletions
diff --git a/src/H5private.h b/src/H5private.h
index 1efc934..d4fb6e9 100644
--- a/src/H5private.h
+++ b/src/H5private.h
@@ -279,15 +279,10 @@
* big deal if we don't.
*/
#ifdef __cplusplus
-# define UNUSED /*void*/
-# define NORETURN /*void*/
+# define __attribute__(X) /*void*/
#else /* __cplusplus */
-#ifdef H5_HAVE_ATTRIBUTE
-# define UNUSED __attribute__((unused))
-# define NORETURN __attribute__((noreturn))
-#else
-# define UNUSED /*void*/
-# define NORETURN /*void*/
+#ifndef H5_HAVE_ATTRIBUTE
+# define __attribute__(X) /*void*/
#endif
#endif /* __cplusplus */