summaryrefslogtreecommitdiff
path: root/src/xine-utils/attributes.h
diff options
context:
space:
mode:
authorDiego 'Flameeyes' Pettenò <flameeyes@gmail.com>2007-02-25 17:34:48 +0000
committerDiego 'Flameeyes' Pettenò <flameeyes@gmail.com>2007-02-25 17:34:48 +0000
commitdd68f6fecd2f8f1195747d7afcbe62c958440ba0 (patch)
tree464440a3f1961b63a6105d57677f8447cfdc03ea /src/xine-utils/attributes.h
parent32a2731bd211c57df9f18f140646b03956231e77 (diff)
downloadxine-lib-dd68f6fecd2f8f1195747d7afcbe62c958440ba0.tar.gz
xine-lib-dd68f6fecd2f8f1195747d7afcbe62c958440ba0.tar.bz2
Instead of replicating it over and over, define __unused in attributes.h so that it can be used whenever necessary.
CVS patchset: 8622 CVS date: 2007/02/25 17:34:48
Diffstat (limited to 'src/xine-utils/attributes.h')
-rw-r--r--src/xine-utils/attributes.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/xine-utils/attributes.h b/src/xine-utils/attributes.h
index dd70d4309..c2936a2a4 100644
--- a/src/xine-utils/attributes.h
+++ b/src/xine-utils/attributes.h
@@ -59,4 +59,12 @@
# define XINE_SENTINEL
#endif
+#ifndef __unused
+# ifdef SUPPORT_ATTRIBUTE_UNUSED
+# define __unused __attribute__((unused))
+# else
+# define __unused
+# endif
+#endif
+
#endif /* ATTRIBUTE_H_ */