From df5eaa6ef2713a9f86e670329fcd22eceeec27bc Mon Sep 17 00:00:00 2001 From: Enno Rehling Date: Sun, 16 Aug 2015 19:55:11 +0200 Subject: [PATCH] eliminate warning (unused variable) --- s/travis-build | 1 + src/kernel/ship.test.c | 2 -- 2 files changed, 1 insertion(+), 2 deletions(-) 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));