aboutsummaryrefslogtreecommitdiffstats
path: root/win32
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2016-12-07 03:19:33 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2016-12-07 03:19:33 +0000
commitbc4426e3a768bd8d689510a2e77483e8a935ef26 (patch)
tree2eac8d6e127ff7973df7e6915470a81706606653 /win32
parent29bc012a2541cbc5b6467165d64e6e1e3fbb581e (diff)
downloadruby-bc4426e3a768bd8d689510a2e77483e8a935ef26.tar.gz
win32.c: suppress warning
* win32/win32.c (rb_w32_home_dir): suppress sequence-point warning, REALLOC_N re-assigns the variable. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@57011 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'win32')
-rw-r--r--win32/win32.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/win32/win32.c b/win32/win32.c
index 1fb72b3bb2..17dce8d016 100644
--- a/win32/win32.c
+++ b/win32/win32.c
@@ -581,7 +581,7 @@ rb_w32_home_dir(void)
xfree(buffer);
return NULL;
}
- buffer = REALLOC_N(buffer, WCHAR, lstrlenW(buffer) + 1);
+ REALLOC_N(buffer, WCHAR, lstrlenW(buffer) + 1);
break;
}