cppcheck false positives

This commit is contained in:
Enno Rehling 2018-02-25 17:01:32 +01:00
parent 079a55fe41
commit 72daecd27e
1 changed files with 2 additions and 0 deletions

View File

@ -116,10 +116,12 @@ static void test_defenders_get_building_bonus(CuTest * tc)
at.index = 0;
bld->size = 10; /* stage 1 building */
CuAssertIntEquals(tc, 1, buildingeffsize(bld, false));
CuAssertIntEquals(tc, -1, skilldiff(at, dt, 0));
CuAssertIntEquals(tc, 0, skilldiff(dt, at, 0));
bld->size = 1; /* stage 0 building */
CuAssertIntEquals(tc, 0, buildingeffsize(bld, false));
CuAssertIntEquals(tc, 0, skilldiff(at, dt, 0));
CuAssertIntEquals(tc, 0, skilldiff(dt, at, 0));