From: Arne Welzel Date: Thu, 27 Sep 2012 20:22:06 +0000 (+0200) Subject: VFS: resolve unused parameter if NOASSERTS="yes" X-Git-Tag: v3.2.1~298 X-Git-Url: http://zhaoyanbai.com/repos/%22http:/www.isc.org/icons/invmod.png?a=commitdiff_plain;h=7e1074732b22c1943adf61a15b4e8d0ae751889b;p=minix.git VFS: resolve unused parameter if NOASSERTS="yes" If VFS is compiled with NOASSERTS="yes", ctty_opcl() does not use the op parameter. Change to "non-assert()" sanity check. --- diff --git a/servers/vfs/device.c b/servers/vfs/device.c index 0d7d5da96..7461abc00 100644 --- a/servers/vfs/device.c +++ b/servers/vfs/device.c @@ -623,7 +623,8 @@ int ctty_opcl( * /dev/tty, the magic device that translates to the controlling tty. */ - assert(!IS_BDEV_RQ(op)); + if (IS_BDEV_RQ(op)) + panic("ctty_opcl() called for block device request?"); return(fp->fp_tty == 0 ? ENXIO : OK); }