forked from github/server
eliminate warning (unused variable)
This commit is contained in:
parent
09dc31f986
commit
df5eaa6ef2
|
@ -10,6 +10,7 @@ $BUILD/iniparser/inifile eressea.ini add lua:paths lunit:scripts
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
set -e
|
||||||
[ -z $BUILD ] && BUILD=Debug ; export BUILD
|
[ -z $BUILD ] && BUILD=Debug ; export BUILD
|
||||||
s/cmake-init
|
s/cmake-init
|
||||||
s/build
|
s/build
|
||||||
|
|
|
@ -521,12 +521,10 @@ static void test_shipspeed_damage(CuTest *tc) {
|
||||||
static void test_shipspeed(CuTest *tc) {
|
static void test_shipspeed(CuTest *tc) {
|
||||||
ship *sh;
|
ship *sh;
|
||||||
const ship_type *stype;
|
const ship_type *stype;
|
||||||
region *r;
|
|
||||||
unit *cap, *crew;
|
unit *cap, *crew;
|
||||||
|
|
||||||
test_cleanup();
|
test_cleanup();
|
||||||
sh = setup_ship();
|
sh = setup_ship();
|
||||||
r = sh->region;
|
|
||||||
stype = sh->type;
|
stype = sh->type;
|
||||||
|
|
||||||
CuAssertIntEquals_Msg(tc, "ship without a captain cannot move", 0, shipspeed(sh, NULL));
|
CuAssertIntEquals_Msg(tc, "ship without a captain cannot move", 0, shipspeed(sh, NULL));
|
||||||
|
|
Loading…
Reference in New Issue