ruby-changes:39636
From: nobu <ko1@a...>
Date: Fri, 28 Aug 2015 20:35:27 +0900 (JST)
Subject: [ruby-changes:39636] nobu:r51717 (trunk): win32.c: suppress warnings
nobu 2015-08-28 20:35:09 +0900 (Fri, 28 Aug 2015) New Revision: 51717 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=51717 Log: win32.c: suppress warnings * win32/win32.c (fchmod): put braces to suppress missing-braces warnings. Modified files: trunk/win32/win32.c Index: win32/win32.c =================================================================== --- win32/win32.c (revision 51716) +++ win32/win32.c (revision 51717) @@ -7329,7 +7329,7 @@ fchmod(int fd, int mode) https://github.com/ruby/ruby/blob/trunk/win32/win32.c#L7329 LARGE_INTEGER LastWriteTime; LARGE_INTEGER ChangeTime; DWORD FileAttributes; - } info = {0, 0, 0}; /* fields with 0 are unchanged */ + } info = {{{0}}, {{0}}, {{0}},}; /* fields with 0 are unchanged */ HANDLE h = (HANDLE)_get_osfhandle(fd); if (h == INVALID_HANDLE_VALUE) { -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/