From 76b2325c19d7e2c937e1dbc1940442e022d952ba Mon Sep 17 00:00:00 2001 From: Enno Rehling Date: Tue, 14 Oct 2014 20:56:58 +0200 Subject: [PATCH] eliminate unused variable warning. --- src/laws.test.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/laws.test.c b/src/laws.test.c index 6e17c232f..48283b017 100644 --- a/src/laws.test.c +++ b/src/laws.test.c @@ -287,9 +287,8 @@ void setup_guard(guard_fixture *fix, bool armed) { if (armed) { item_type *itype; - weapon_type *wtype; itype = it_get_or_create(rt_get_or_create("sword")); - wtype = new_weapontype(itype, 0, 0.0, NULL, 0, 0, 0, SK_MELEE, 2); + new_weapontype(itype, 0, 0.0, NULL, 0, 0, 0, SK_MELEE, 2); i_change(&u->items, itype, 1); set_level(u, SK_MELEE, 2); }