forked from github/server
new gcc spouts more warnings, fix them.
This commit is contained in:
parent
8cd99bf88c
commit
0616549ea5
|
@ -308,6 +308,10 @@ static void test_buildingowner_resets_when_dead(CuTest * tc)
|
|||
CuAssertPtrEquals(tc, 0, building_owner(bld));
|
||||
}
|
||||
|
||||
void test_buildingowner_goes_to_empty_unit_if_no_other(CuTest * tc)
|
||||
{
|
||||
}
|
||||
|
||||
CuSuite *get_building_suite(void)
|
||||
{
|
||||
CuSuite *suite = CuSuiteNew();
|
||||
|
@ -320,5 +324,6 @@ CuSuite *get_building_suite(void)
|
|||
SUITE_ADD_TEST(suite, test_buildingowner_goes_to_next_after_leave);
|
||||
SUITE_ADD_TEST(suite, test_buildingowner_goes_to_other_after_leave);
|
||||
SUITE_ADD_TEST(suite, test_buildingowner_goes_to_same_faction_after_leave);
|
||||
SUITE_ADD_TEST(suite, test_buildingowner_goes_to_empty_unit_if_no_other);
|
||||
return suite;
|
||||
}
|
||||
|
|
|
@ -25,6 +25,7 @@ static void test_building_type_exists(CuTest * tc)
|
|||
r = findregion(-1, 0);
|
||||
b = new_building(btype, r, default_locale);
|
||||
|
||||
CuAssertPtrNotNull(tc, b);
|
||||
CuAssertTrue(tc, buildingtype_exists(r, NULL, true) == false);
|
||||
CuAssertTrue(tc, buildingtype_exists(r, btype, true) == true);
|
||||
CuAssertTrue(tc, buildingtype_exists(r, btype2, true) == false);
|
||||
|
|
|
@ -151,7 +151,6 @@ void test_create_world(void)
|
|||
{
|
||||
terrain_type *t_plain, *t_ocean;
|
||||
region *island[2];
|
||||
race *rc_human;
|
||||
int i;
|
||||
building_type *btype;
|
||||
ship_type *stype;
|
||||
|
@ -179,7 +178,7 @@ void test_create_world(void)
|
|||
}
|
||||
}
|
||||
|
||||
rc_human = test_create_race("human");
|
||||
test_create_race("human");
|
||||
|
||||
btype = (building_type*)calloc(sizeof(building_type), 1);
|
||||
btype->flags = BTF_NAMECHANGE;
|
||||
|
|
Loading…
Reference in New Issue