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:
parent
1fdb95e142
commit
7c3dfa82c7
@ -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
|
||||
|
@ -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);
|
||||
|
Reference in New Issue
Block a user