From 4002be60c010c6b7eb3bcb7b8857553b286bbf85 Mon Sep 17 00:00:00 2001 From: nobu Date: Sat, 16 Mar 2013 08:05:45 +0000 Subject: console.c: supppress warnings * ext/io/console/console.c (console_iflush, console_oflush): supppress unused-but-set-variable warnings on no tcflush. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39778 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- ext/io/console/console.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ext/io/console/console.c b/ext/io/console/console.c index 2e8f0e387e..e1b515abdd 100644 --- a/ext/io/console/console.c +++ b/ext/io/console/console.c @@ -610,6 +610,7 @@ console_iflush(VALUE io) #if defined HAVE_TERMIOS_H || defined HAVE_TERMIO_H if (tcflush(fd, TCIFLUSH)) rb_sys_fail(0); #endif + (void)fd; return io; } @@ -632,6 +633,7 @@ console_oflush(VALUE io) #if defined HAVE_TERMIOS_H || defined HAVE_TERMIO_H if (tcflush(fd, TCOFLUSH)) rb_sys_fail(0); #endif + (void)fd; return io; } -- cgit v1.2.3