From dd68f6fecd2f8f1195747d7afcbe62c958440ba0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Diego=20=27Flameeyes=27=20Petten=C3=B2?= Date: Sun, 25 Feb 2007 17:34:48 +0000 Subject: 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 --- src/xine-utils/attributes.h | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src/xine-utils/attributes.h') 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_ */ -- cgit v1.2.3