Get rid of some warnings in timer initialization.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@5294 dfc29bdd-3216-0410-991c-e03cc46cb475
This commit is contained in:
parent
d7a700e44f
commit
c279615ab8
@ -253,7 +253,8 @@ namespace os
|
||||
timeinfo = localtime(&rawtime);
|
||||
|
||||
// init with all 0 to indicate error
|
||||
ITimer::RealTimeDate date={0};
|
||||
ITimer::RealTimeDate date;
|
||||
memset(&date, 0, sizeof(date));
|
||||
// at least Windows returns NULL on some illegal dates
|
||||
if (timeinfo)
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user