mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
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
This commit is contained in:
parent
cab124776e
commit
4002be60c0
1 changed files with 2 additions and 0 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue