diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2015-08-28 11:35:09 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2015-08-28 11:35:09 +0000 |
commit | d93855e6ef372d892cc6770c64a289ebbbe4d163 (patch) | |
tree | 56ce12198dba923add5d465f86e3dc99b9341e83 /win32 | |
parent | b07290078006f5a2a828b144c1d35fbe04162e32 (diff) |
win32.c: suppress warnings
* win32/win32.c (fchmod): put braces to suppress missing-braces
warnings.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@51717 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 b10eebf885..18ef8cb6d8 100644 --- a/win32/win32.c +++ b/win32/win32.c @@ -7329,7 +7329,7 @@ fchmod(int fd, int mode) 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) { |