Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/sys Some splay trees don't use the next method, so mark ...



details:   https://anonhg.NetBSD.org/src/rev/ac9e323934c4
branches:  trunk
changeset: 789983:ac9e323934c4
user:      joerg <joerg%NetBSD.org@localhost>
date:      Sat Sep 14 13:20:45 2013 +0000

description:
Some splay trees don't use the next method, so mark it as potentially unused

diffstat:

 sys/sys/tree.h |  4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diffs (18 lines):

diff -r 7dce63803dd9 -r ac9e323934c4 sys/sys/tree.h
--- a/sys/sys/tree.h    Sat Sep 14 13:19:50 2013 +0000
+++ b/sys/sys/tree.h    Sat Sep 14 13:20:45 2013 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: tree.h,v 1.19 2013/09/13 19:43:38 joerg Exp $  */
+/*     $NetBSD: tree.h,v 1.20 2013/09/14 13:20:45 joerg Exp $  */
 /*     $OpenBSD: tree.h,v 1.13 2011/07/09 00:19:45 pirofti Exp $       */
 /*
  * Copyright 2002 Niels Provos <provos%citi.umich.edu@localhost>
@@ -130,7 +130,7 @@
        return (NULL);                                                  \
 }                                                                      \
                                                                        \
-static __inline struct type *                                          \
+static __inline __unused struct type *                                 \
 name##_SPLAY_NEXT(struct name *head, struct type *elm)                 \
 {                                                                      \
        name##_SPLAY(head, elm);                                        \



Home | Main Index | Thread Index | Old Index