summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2017-07-30 19:27:21 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2017-07-30 19:27:21 +0000
commitdac5c6d07e39a0199bdb3169b945212bcd62d92b (patch)
treed060429d4b583d6ab5b0e619c8fb94d81985f8da /sys
parent03edfa7e67ed7ba121f1fe7f01d7a54bfcd14cc8 (diff)
mark __inline functions which are not neccessarily used, with __unused.
ok espie florian kettenis
Diffstat (limited to 'sys')
-rw-r--r--sys/sys/tree.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/sys/sys/tree.h b/sys/sys/tree.h
index 1c4b617aca1..ffcac9023bf 100644
--- a/sys/sys/tree.h
+++ b/sys/sys/tree.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: tree.h,v 1.28 2017/06/19 03:06:26 dlg Exp $ */
+/* $OpenBSD: tree.h,v 1.29 2017/07/30 19:27:20 deraadt Exp $ */
/*
* Copyright 2002 Niels Provos <provos@citi.umich.edu>
* All rights reserved.
@@ -120,7 +120,7 @@ struct type *name##_SPLAY_INSERT(struct name *, struct type *); \
struct type *name##_SPLAY_REMOVE(struct name *, struct type *); \
\
/* Finds the node with the same key as elm */ \
-static __inline struct type * \
+static __unused __inline struct type * \
name##_SPLAY_FIND(struct name *head, struct type *elm) \
{ \
if (SPLAY_EMPTY(head)) \
@@ -131,7 +131,7 @@ name##_SPLAY_FIND(struct name *head, struct type *elm) \
return (NULL); \
} \
\
-static __inline struct type * \
+static __unused __inline struct type * \
name##_SPLAY_NEXT(struct name *head, struct type *elm) \
{ \
name##_SPLAY(head, elm); \
@@ -145,7 +145,7 @@ name##_SPLAY_NEXT(struct name *head, struct type *elm) \
return (elm); \
} \
\
-static __inline struct type * \
+static __unused __inline struct type * \
name##_SPLAY_MIN_MAX(struct name *head, int val) \
{ \
name##_SPLAY_MINMAX(head, val); \