diff --git a/s/travis-build b/s/travis-build index 14aff5358..a6c920340 100755 --- a/s/travis-build +++ b/s/travis-build @@ -10,6 +10,7 @@ $BUILD/iniparser/inifile eressea.ini add lua:paths lunit:scripts fi } +set -e [ -z $BUILD ] && BUILD=Debug ; export BUILD s/cmake-init s/build diff --git a/src/kernel/ship.test.c b/src/kernel/ship.test.c index 380274a45..dc125cd9b 100644 --- a/src/kernel/ship.test.c +++ b/src/kernel/ship.test.c @@ -521,12 +521,10 @@ static void test_shipspeed_damage(CuTest *tc) { static void test_shipspeed(CuTest *tc) { ship *sh; const ship_type *stype; - region *r; unit *cap, *crew; test_cleanup(); sh = setup_ship(); - r = sh->region; stype = sh->type; CuAssertIntEquals_Msg(tc, "ship without a captain cannot move", 0, shipspeed(sh, NULL));