From e300605e87b74bf11f55e1bf7c891499edbbf48f Mon Sep 17 00:00:00 2001 From: Enno Rehling Date: Sat, 10 Feb 2018 17:31:48 +0100 Subject: [PATCH] fix gcc build --- src/attributes/seenspell.c | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/src/attributes/seenspell.c b/src/attributes/seenspell.c index 3d813ee45..170cc33b4 100644 --- a/src/attributes/seenspell.c +++ b/src/attributes/seenspell.c @@ -66,7 +66,7 @@ static int read_seenspells(variant *var, void *owner, struct gamedata *data) return AT_READ_OK; } -static bool cb_write_spell(const void *data, void *more) { +static bool cb_write_spell(void *data, void *more) { const spell *sp = (const spell *)data; storage *store = (storage *)more; WRITE_TOK(store, sp->sname); @@ -101,14 +101,6 @@ static int read_seenspell(variant *var, void *owner, struct gamedata *data) return AT_READ_DEPR; } -static void -write_seenspell(const variant *var, const void *owner, struct storage *store) -{ - const spell *sp = (const spell *)var->v; - UNUSED_ARG(owner); - WRITE_TOK(store, sp->sname); -} - static int cmp_spell(const void *a, const void *b) { const spell *spa = (const spell *)a; const spell *spb = (const spell *)b;