From 0755830754f7249957e0c6ce017f08e24d95410c Mon Sep 17 00:00:00 2001 From: Enno Rehling Date: Sun, 21 May 2017 23:47:54 +0200 Subject: [PATCH] fix compilation, test still fails --- src/laws.test.c | 4 ---- src/reports.test.c | 6 ++---- 2 files changed, 2 insertions(+), 8 deletions(-) diff --git a/src/laws.test.c b/src/laws.test.c index 7e5df0b56..4d6adbfe9 100644 --- a/src/laws.test.c +++ b/src/laws.test.c @@ -1446,10 +1446,6 @@ static void test_show_both(CuTest *tc) { test_cleanup(); } -static int low_wage(const region * r, const faction * f, const race * rc, int in_turn) { - return 1; -} - static void test_immigration(CuTest * tc) { region *r; diff --git a/src/reports.test.c b/src/reports.test.c index dd27ee360..f602ade46 100644 --- a/src/reports.test.c +++ b/src/reports.test.c @@ -714,16 +714,14 @@ static void test_region_distance_ql(CuTest *tc) { } static void test_report_far_vision(CuTest *tc) { - unit *u1; faction *f; region *r1, *r2; - const race *rc; test_setup(); f = test_create_faction(0); r1 = test_create_region(0, 0, 0); - u1 = test_create_unit(f, r1); + test_create_unit(f, r1); r2 = test_create_region(10, 0, 0); - rc = test_create_race("spell"); + test_create_race("spell"); set_observer(r2, f, 10); CuAssertPtrEquals(tc, r1, f->first); CuAssertPtrEquals(tc, r2, f->last);