summaryrefslogtreecommitdiffstats
path: root/src/H5private.h
diff options
context:
space:
mode:
authorMohamad Chaarawi <chaarawi@hdfgroup.org>2015-03-31 19:54:31 (GMT)
committerMohamad Chaarawi <chaarawi@hdfgroup.org>2015-03-31 19:54:31 (GMT)
commitccdcbec6350863cd4d85f8ed29404f594ce91277 (patch)
tree9749677ec4d4db1b393a64b38b3e2371b41d59e2 /src/H5private.h
parentcf11eef3859e01be8e81592ca8e5f242d4734673 (diff)
downloadhdf5-ccdcbec6350863cd4d85f8ed29404f594ce91277.zip
hdf5-ccdcbec6350863cd4d85f8ed29404f594ce91277.tar.gz
hdf5-ccdcbec6350863cd4d85f8ed29404f594ce91277.tar.bz2
[svn-r26678] add ifdef checks and setting for __attribute__ in a public place to allow usage in
public routines.
Diffstat (limited to 'src/H5private.h')
-rw-r--r--src/H5private.h7
1 files changed, 2 insertions, 5 deletions
diff --git a/src/H5private.h b/src/H5private.h
index 1164a2d..d1bbc24 100644
--- a/src/H5private.h
+++ b/src/H5private.h
@@ -275,12 +275,10 @@
#endif
/*
- * Does the compiler support the __attribute__(()) syntax? This is how gcc
- * suppresses warnings about unused function arguments. It's no big deal if
- * we don't.
+ * Does the compiler support the __attribute__(()) syntax? It's no
+ * big deal if we don't.
*/
#ifdef __cplusplus
-# define __attribute__(X) /*void*/
# define UNUSED /*void*/
# define NORETURN /*void*/
#else /* __cplusplus */
@@ -288,7 +286,6 @@
# define UNUSED __attribute__((unused))
# define NORETURN __attribute__((noreturn))
#else
-# define __attribute__(X) /*void*/
# define UNUSED /*void*/
# define NORETURN /*void*/
#endif