From 7e1074732b22c1943adf61a15b4e8d0ae751889b Mon Sep 17 00:00:00 2001 From: Arne Welzel Date: Thu, 27 Sep 2012 22:22:06 +0200 Subject: [PATCH] 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. --- servers/vfs/device.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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); } -- 2.44.0