ruby-changes:19237
From: nobu <ko1@a...>
Date: Fri, 15 Apr 2011 16:44:01 +0900 (JST)
Subject: [ruby-changes:19237] Ruby:r31276 (trunk): * win32/win32.c (rb_w32_read): suppress warning.
nobu 2011-04-14 21:20:59 +0900 (Thu, 14 Apr 2011) New Revision: 31276 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=31276 Log: * win32/win32.c (rb_w32_read): suppress warning. Modified files: trunk/ChangeLog trunk/win32/win32.c Index: ChangeLog =================================================================== --- ChangeLog (revision 31275) +++ ChangeLog (revision 31276) @@ -1,3 +1,7 @@ +Thu Apr 14 21:20:51 2011 Nobuyoshi Nakada <nobu@r...> + + * win32/win32.c (rb_w32_read): suppress warning. + Thu Apr 14 19:55:54 2011 KOSAKI Motohiro <kosaki.motohiro@g...> * lib/fileutils.rb (FileUtils#touch): fix corrupted output when Index: win32/win32.c =================================================================== --- win32/win32.c (revision 31275) +++ win32/win32.c (revision 31276) @@ -5045,7 +5045,7 @@ 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 @@ ret = 0; isconsole = is_console(_osfhnd(fd)); - if(isconsole){ + if (isconsole) { DWORD mode; GetConsoleMode((HANDLE)_osfhnd(fd),&mode); islineinput = (mode & ENABLE_LINE_INPUT) != 0; -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/