From 9db0b2d7eeae0986e79444a8721dc49ec3234aff Mon Sep 17 00:00:00 2001 From: nobu Date: Wed, 7 Dec 2016 03:19:33 +0000 Subject: [PATCH] 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 --- win32/win32.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; }