First member of SYSTEM_INFO is a union. MSCV allows {}, codeblocks with mingw does not. Prevent warning on both by using {{0}} syntax.

This commit is contained in:
liamDevine 2011-08-22 11:32:18 +01:00
parent 1fdb95e142
commit 7c3dfa82c7
2 changed files with 3 additions and 2 deletions

View File

@ -26,7 +26,8 @@
* Bug 3297634: Special characters in directory name Xcode3 (jdale)
* Feature 3100194: English alais' for Optimize flags
* Bug 3308203: Incorrect relative paths for gmake sibling static libraries (Adam)
* Added environment argument support for Visual Studio
-------
4.3

View File

@ -53,7 +53,7 @@ int os_getversion(lua_State* L)
void getversion(struct OsVersionInfo* info)
{
OSVERSIONINFOEX versionInfo = {0};
SYSTEM_INFO systemInfo = {0};
SYSTEM_INFO systemInfo = {{0}};
versionInfo.dwOSVersionInfoSize = sizeof(OSVERSIONINFOEX);
GetVersionEx((OSVERSIONINFO*)&versionInfo);