summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTodd C. Miller <millert@cvs.openbsd.org>2005-05-19 02:00:52 +0000
committerTodd C. Miller <millert@cvs.openbsd.org>2005-05-19 02:00:52 +0000
commit03695d4296656a158fd5ec072c1c346327538af0 (patch)
tree524d383abf0b80254589246083d3c3b10150d855
parentc55fd1c9da468062cb3b0f384902f654cf2a94f8 (diff)
Add __unused macro similar to what is used by Net and Free.
OK cloder@, grange@, djm@
-rw-r--r--sys/sys/cdefs.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/sys/cdefs.h b/sys/sys/cdefs.h
index 623d3873bf4..739c9f4be66 100644
--- a/sys/sys/cdefs.h
+++ b/sys/sys/cdefs.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: cdefs.h,v 1.13 2004/01/28 03:33:29 millert Exp $ */
+/* $OpenBSD: cdefs.h,v 1.14 2005/05/19 02:00:51 millert Exp $ */
/* $NetBSD: cdefs.h,v 1.16 1996/04/03 20:46:39 christos Exp $ */
/*
@@ -171,8 +171,10 @@
#if __GNUC_PREREQ__(2, 7)
#define __packed __attribute__((__packed__))
+#define __unused __attribute__((__unused__))
#elif defined(lint)
#define __packed
+#define __unused
#endif
#if !__GNUC_PREREQ__(2, 8)