summaryrefslogtreecommitdiff
path: root/ext/io
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-03-16 08:05:45 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-03-16 08:05:45 +0000
commit4002be60c010c6b7eb3bcb7b8857553b286bbf85 (patch)
tree515c27cb3282a00c2901240b91deb9da0c3e458d /ext/io
parentcab124776e911cc509598464831a0106ba975808 (diff)
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
Diffstat (limited to 'ext/io')
-rw-r--r--ext/io/console/console.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/ext/io/console/console.c b/ext/io/console/console.c
index 2e8f0e3..e1b515a 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;
}