diff options
author | Benoit Germain <bnt.germain@gmail.com> | 2011-11-09 17:18:29 +0100 |
---|---|---|
committer | Benoit Germain <bnt.germain@gmail.com> | 2011-11-09 17:18:29 +0100 |
commit | d3cf02aa89d8fea98cd89f83fe4ca2c871e744c2 (patch) | |
tree | 9720f30179f7b420c2cedce149b17a422e5734c4 /src/lanes.c | |
parent | 7326963a22c73ff9d7c8cb02a3ca16d41decdc91 (diff) | |
download | lanes-d3cf02aa89d8fea98cd89f83fe4ca2c871e744c2.tar.gz lanes-d3cf02aa89d8fea98cd89f83fe4ca2c871e744c2.tar.bz2 lanes-d3cf02aa89d8fea98cd89f83fe4ca2c871e744c2.zip |
some more compilation warning fixes
Diffstat (limited to 'src/lanes.c')
-rw-r--r-- | src/lanes.c | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/src/lanes.c b/src/lanes.c index 1ebe91d..aef1015 100644 --- a/src/lanes.c +++ b/src/lanes.c | |||
@@ -1358,15 +1358,15 @@ void SetThreadName( DWORD dwThreadID, char const *_threadName) | |||
1358 | 1358 | ||
1359 | LUAG_FUNC( set_debug_threadname) | 1359 | LUAG_FUNC( set_debug_threadname) |
1360 | { | 1360 | { |
1361 | char const *threadName; | ||
1362 | luaL_checktype( L, -1, LUA_TSTRING); | 1361 | luaL_checktype( L, -1, LUA_TSTRING); |
1363 | threadName = lua_tostring( L, -1); | ||
1364 | |||
1365 | #if defined PLATFORM_WIN32 && !defined __GNUC__ | 1362 | #if defined PLATFORM_WIN32 && !defined __GNUC__ |
1366 | // to see thead name in Visual Studio C debugger | 1363 | { |
1367 | SetThreadName(-1, threadName); | 1364 | char const *threadName = lua_tostring( L, -1); |
1368 | #endif | ||
1369 | 1365 | ||
1366 | // to see thead name in Visual Studio C debugger | ||
1367 | SetThreadName(-1, threadName); | ||
1368 | } | ||
1369 | #endif // defined PLATFORM_WIN32 && !defined __GNUC__ | ||
1370 | // to see VM name in Decoda debugger Virtual Machine window | 1370 | // to see VM name in Decoda debugger Virtual Machine window |
1371 | lua_setglobal( L, "decoda_name"); | 1371 | lua_setglobal( L, "decoda_name"); |
1372 | 1372 | ||
@@ -2203,7 +2203,8 @@ LUAG_FUNC( now_secs ) | |||
2203 | LUAG_FUNC( wakeup_conv ) | 2203 | LUAG_FUNC( wakeup_conv ) |
2204 | { | 2204 | { |
2205 | int year, month, day, hour, min, sec, isdst; | 2205 | int year, month, day, hour, min, sec, isdst; |
2206 | struct tm t = {0,0,0,0,0,0,0,0,0}; | 2206 | struct tm t; |
2207 | memset( &t, 0, sizeof( t)); | ||
2207 | // | 2208 | // |
2208 | // .year (four digits) | 2209 | // .year (four digits) |
2209 | // .month (1..12) | 2210 | // .month (1..12) |