diff options
Diffstat (limited to 'sys')
-rw-r--r-- | sys/sys/cdefs.h | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/sys/sys/cdefs.h b/sys/sys/cdefs.h index 81bf7ab694f..d4f6a4cc655 100644 --- a/sys/sys/cdefs.h +++ b/sys/sys/cdefs.h @@ -1,4 +1,4 @@ -/* $OpenBSD: cdefs.h,v 1.28 2009/01/14 21:26:48 guenther Exp $ */ +/* $OpenBSD: cdefs.h,v 1.29 2010/04/30 20:09:35 kettenis Exp $ */ /* $NetBSD: cdefs.h,v 1.16 1996/04/03 20:46:39 christos Exp $ */ /* @@ -129,6 +129,18 @@ #define __pure __attribute__((__const__)) #endif +#if __GNUC_PREREQ__(2, 7) +#define __unused __attribute__((__unused__)) +#else +#define __unused /* delete */ +#endif + +#if __GNUC_PREREQ__(3, 1) +#define __used __attribute__((__used__)) +#else +#define __used __unused /* suppress -Wunused warnings */ +#endif + /* * GNU C version 2.96 adds explicit branch prediction so that * the CPU back-end can hint the processor and also so that |