Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 28 Dec 2013 21:31:59 +0000 (UTC)
From:      Dimitry Andric <dim@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r260017 - head/sys/sys
Message-ID:  <201312282131.rBSLVxel068371@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: dim
Date: Sat Dec 28 21:31:58 2013
New Revision: 260017
URL: http://svnweb.freebsd.org/changeset/base/260017

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

Modified:
  head/sys/sys/pctrie.h

Modified: head/sys/sys/pctrie.h
==============================================================================
--- head/sys/sys/pctrie.h	Sat Dec 28 21:04:17 2013	(r260016)
+++ head/sys/sys/pctrie.h	Sat Dec 28 21:31:58 2013	(r260017)
@@ -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)				\
 {									\
 									\



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201312282131.rBSLVxel068371>