Author: dim
Date: Sat Jan  4 17:36:13 2014
New Revision: 260266
URL: http://svnweb.freebsd.org/changeset/base/260266

Log:
  MFC r260017:
  
  Mark unused static inline functions defined by the PCTRIE_DEFINE() macro
  as __unused, so warnings about them are avoided.

Modified:
  stable/10/sys/sys/pctrie.h
Directory Properties:
  stable/10/   (props changed)

Modified: stable/10/sys/sys/pctrie.h
==============================================================================
--- stable/10/sys/sys/pctrie.h  Sat Jan  4 17:33:05 2014        (r260265)
+++ stable/10/sys/sys/pctrie.h  Sat Jan  4 17:36:13 2014        (r260266)
@@ -83,14 +83,14 @@ name##_PCTRIE_LOOKUP_LE(struct pctrie *p
        return name##_PCTRIE_VAL2PTR(pctrie_lookup_le(ptree, key));     \
 }                                                                      \
                                                                        \
-static __inline struct type *                                          \
+static __inline __unused struct type *                                 \
 name##_PCTRIE_LOOKUP_GE(struct pctrie *ptree, uint64_t key)            \
 {                                                                      \
                                                                        \
        return name##_PCTRIE_VAL2PTR(pctrie_lookup_ge(ptree, key));     \
 }                                                                      \
                                                                        \
-static __inline void                                                   \
+static __inline __unused void                                          \
 name##_PCTRIE_RECLAIM(struct pctrie *ptree)                            \
 {                                                                      \
                                                                        \
_______________________________________________
svn-src-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"

Reply via email to