[前][次][番号順一覧][スレッド一覧]

ruby-changes:44938

From: nobu <ko1@a...>
Date: Wed, 7 Dec 2016 12:19:41 +0900 (JST)
Subject: [ruby-changes:44938] nobu:r57011 (trunk): win32.c: suppress warning

nobu	2016-12-07 12:19:33 +0900 (Wed, 07 Dec 2016)

  New Revision: 57011

  https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=57011

  Log:
    win32.c: suppress warning
    
    * win32/win32.c (rb_w32_home_dir): suppress sequence-point
      warning, REALLOC_N re-assigns the variable.

  Modified files:
    trunk/win32/win32.c
Index: win32/win32.c
===================================================================
--- win32/win32.c	(revision 57010)
+++ win32/win32.c	(revision 57011)
@@ -581,7 +581,7 @@ rb_w32_home_dir(void) https://github.com/ruby/ruby/blob/trunk/win32/win32.c#L581
 	    xfree(buffer);
 	    return NULL;
 	}
-	buffer = REALLOC_N(buffer, WCHAR, lstrlenW(buffer) + 1);
+	REALLOC_N(buffer, WCHAR, lstrlenW(buffer) + 1);
 	break;
     }
 

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]