From: Sascha Wildner Date: Thu, 11 Oct 2012 13:35:22 +0000 (+0200) Subject: usb4bsd: Fix some compilation warnings. X-Git-Tag: v3.4.0rc~998^2~2 X-Git-Url: https://gitweb.dragonflybsd.org/dragonfly.git/commitdiff_plain/b7abfd1870668d912e865bdc62fd8dc07fa88f35 usb4bsd: Fix some compilation warnings. --- diff --git a/sys/bus/u4b/input/ukbd.c b/sys/bus/u4b/input/ukbd.c index cd47acb7d8..d602dbc6c0 100644 --- a/sys/bus/u4b/input/ukbd.c +++ b/sys/bus/u4b/input/ukbd.c @@ -1735,10 +1735,12 @@ ukbd_ioctl_locked(keyboard_t *kbd, u_long cmd, caddr_t arg) { struct ukbd_softc *sc = kbd->kb_data; int i; +#if 0 /* XXX */ #if defined(COMPAT_FREEBSD6) || defined(COMPAT_FREEBSD5) || \ defined(COMPAT_FREEBSD4) || defined(COMPAT_43) int ival; +#endif #endif switch (cmd) { diff --git a/sys/bus/u4b/input/ums.c b/sys/bus/u4b/input/ums.c index 1a8a02ba5c..276c219ccc 100644 --- a/sys/bus/u4b/input/ums.c +++ b/sys/bus/u4b/input/ums.c @@ -150,7 +150,9 @@ static usb_fifo_ioctl_t ums_ioctl; static void ums_put_queue(struct ums_softc *, int32_t, int32_t, int32_t, int32_t, int32_t); +#if 0 /* XXX */ static int ums_sysctl_handler_parseinfo(SYSCTL_HANDLER_ARGS); +#endif static struct usb_fifo_methods ums_fifo_methods = { .f_open = &ums_open, @@ -978,6 +980,7 @@ done: return (error); } +#if 0 /* XXX */ static int ums_sysctl_handler_parseinfo(SYSCTL_HANDLER_ARGS) { @@ -1040,6 +1043,7 @@ ums_sysctl_handler_parseinfo(SYSCTL_HANDLER_ARGS) return (err); } +#endif static devclass_t ums_devclass;