From 31941d9f3b2a665317503166785a3eb6cef35a9c Mon Sep 17 00:00:00 2001 From: Dusan Durech Date: Wed, 22 Apr 2009 19:54:52 +0200 Subject: fix _all_ warnings // used macro UNUSET --- src/base/tux.c | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'src/base/tux.c') diff --git a/src/base/tux.c b/src/base/tux.c index 5a10c7a..d8fff10 100644 --- a/src/base/tux.c +++ b/src/base/tux.c @@ -409,6 +409,8 @@ static void action_tux(space_t * space, tux_t * tux, shot_t * shot) { arena_t *arena; + UNUSET(space); + arena = arena_get_current(); if (tux->status == TUX_STATUS_ALIVE) { @@ -443,6 +445,8 @@ static void action_tux(space_t * space, tux_t * tux, shot_t * shot) static void action_shot(space_t * space, shot_t * shot, space_t * spaceTux) { + UNUSET(space); + space_action_from_location(spaceTux, action_tux, shot, shot->x, shot->y, shot->w, shot->h); } @@ -721,12 +725,17 @@ void tux_set_status(void *p, int x, int y, int w, int h) { tux_t *tux; + UNUSET(w); + UNUSET(h); + tux = p; tux_set_proportion(tux, x, y); } static void action_checkMine(space_t * space, item_t * item, tux_t * tux) { + UNUSET(space); + if (item->type == ITEM_MINE && item->author_id == tux->id) { item->author_id = ID_UNKNOWN; } -- cgit v1.2.3