On Sat, 15 Feb 2014, Dimitry Andric wrote:

Log:
 In sys/dev/xen/console/console.c, #if 0 an unused static function.

 MFC after:     3 days

Modified:
 head/sys/dev/xen/console/console.c

Modified: head/sys/dev/xen/console/console.c
==============================================================================
--- head/sys/dev/xen/console/console.c  Sat Feb 15 12:25:01 2014        
(r261915)
+++ head/sys/dev/xen/console/console.c  Sat Feb 15 12:37:26 2014        
(r261916)
@@ -356,6 +356,7 @@ xcclose(struct tty *tp)
        xen_console_up = 0;
}

+#if 0
static inline int
__xencons_put_char(int ch)
{
@@ -365,6 +366,7 @@ __xencons_put_char(int ch)
        wbuf[WBUF_MASK(wp++)] = _ch;
        return 1;
}
+#endif

static void

Why?  There are hundreds if not thousands of static inline functions in
headers, and most of these functions are not always used, so there would
be [hundreds if not thousands] * [number of #includes] compiler warnings
if compilers warned about things like this.  They could handle include
files specially, but shouldn't.

Bruce
_______________________________________________
svn-src-head@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"

Reply via email to