* win32/win32.c (rb_w32_read): suppress warning.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31276 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
nobu 2011-04-14 12:20:59 +00:00
parent b4dc41d42e
commit b8bcb6474c
2 changed files with 6 additions and 2 deletions

View file

@ -5045,7 +5045,7 @@ rb_w32_read(int fd, void *buf, size_t size)
size_t ret;
OVERLAPPED ol, *pol = NULL;
BOOL isconsole;
BOOL islineinput;
BOOL islineinput = FALSE;
int start = 0;
if (is_socket(sock))
@ -5070,7 +5070,7 @@ rb_w32_read(int fd, void *buf, size_t size)
ret = 0;
isconsole = is_console(_osfhnd(fd));
if(isconsole){
if (isconsole) {
DWORD mode;
GetConsoleMode((HANDLE)_osfhnd(fd),&mode);
islineinput = (mode & ENABLE_LINE_INPUT) != 0;