diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2016-12-07 03:19:33 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2016-12-07 03:19:33 +0000 |
commit | 9db0b2d7eeae0986e79444a8721dc49ec3234aff (patch) | |
tree | 2eac8d6e127ff7973df7e6915470a81706606653 /win32 | |
parent | f4b51e69dcf21f042be0ffb236e936bc99a511f0 (diff) | |
download | ruby-9db0b2d7eeae0986e79444a8721dc49ec3234aff.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.c | 2 |
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; } |