aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2011-04-14 12:20:59 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2011-04-14 12:20:59 +0000
commitb8bcb6474c14cbe6ec3d9b8de34e8acec627370a (patch)
treed79e73d069d30214ccdfd272e92fd1308b8bb4a9
parentb4dc41d42ee969dcbe9da510073a06a627c9b2fd (diff)
downloadruby-b8bcb6474c14cbe6ec3d9b8de34e8acec627370a.tar.gz
* 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
-rw-r--r--ChangeLog4
-rw-r--r--win32/win32.c4
2 files changed, 6 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog
index b772e92d4e..b01741f293 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+Thu Apr 14 21:20:51 2011 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * win32/win32.c (rb_w32_read): suppress warning.
+
Thu Apr 14 19:55:54 2011 KOSAKI Motohiro <kosaki.motohiro@gmail.com>
* lib/fileutils.rb (FileUtils#touch): fix corrupted output when
diff --git a/win32/win32.c b/win32/win32.c
index f87cf8b696..5aea1b5e78 100644
--- a/win32/win32.c
+++ b/win32/win32.c
@@ -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;