mirror of
https://github.com/scp-fs2open/fs2open.github.com.git
synced 2026-11-10 12:41:35 -10:00
Attempt to remove various warnings under MSVC 2003, mostly related to casting, but also some instances of inaccessible code.
This commit is contained in:
1 parent
028613f3fd
commit
fd151e4c43
17 files changed
+172
-124
No files matched your search
+3
-3
@@ -822,7 +822,7 @@ ADE_FUNC(getStatus, l_Event, NULL, "Event status", "Gets event's current status
|
||||
case EVENT_SATISFIED:
|
||||
return ade_set_args(L, "s", "Completed");
|
||||
default:
|
||||
return ADE_RETURN_FALSE;
|
||||
break;
|
||||
}
|
||||
|
||||
return ADE_RETURN_FALSE;
|
||||
@@ -945,7 +945,7 @@ ADE_FUNC(read, l_File, "number or string, ...", "number or string, ...",
|
||||
{
|
||||
type = lua_type(L, i);
|
||||
char *fmt = NULL;
|
||||
int num = 0;
|
||||
//int num = 0;
|
||||
if(type == LUA_TSTRING)
|
||||
{
|
||||
fmt = (char*)lua_tostring(L, i);
|
||||
@@ -6499,7 +6499,7 @@ ADE_INDEXER(l_Mission_WaypointLists, "waypointlist index", "waypointlist", "Gets
|
||||
idx = atoi(name);
|
||||
if(idx > 0)
|
||||
{
|
||||
int count=1;
|
||||
//int count=1;
|
||||
|
||||
object *ptr = GET_FIRST(&obj_used_list);
|
||||
while (ptr != END_OF_LIST(&obj_used_list))
|
||||
|
||||
Reference in new issue
Block a user