diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2013-03-16 08:05:45 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2013-03-16 08:05:45 +0000 |
commit | 4002be60c010c6b7eb3bcb7b8857553b286bbf85 (patch) | |
tree | 515c27cb3282a00c2901240b91deb9da0c3e458d /ext | |
parent | cab124776e911cc509598464831a0106ba975808 (diff) | |
download | ruby-4002be60c010c6b7eb3bcb7b8857553b286bbf85.tar.gz |
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')
-rw-r--r-- | ext/io/console/console.c | 2 |
1 files changed, 2 insertions, 0 deletions
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; } |