eliminate warning (unused variable)

This commit is contained in:
Enno Rehling 2015-08-16 19:55:11 +02:00
parent 09dc31f986
commit df5eaa6ef2
2 changed files with 1 additions and 2 deletions

View File

@ -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

View File

@ -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));