summaryrefslogtreecommitdiff
path: root/src/modules/modAI.c
diff options
context:
space:
mode:
authorDusan Durech <dusan@debian.debian>2009-04-22 19:54:52 +0200
committerDusan Durech <dusan@debian.debian>2009-04-22 19:54:52 +0200
commit31941d9f3b2a665317503166785a3eb6cef35a9c (patch)
treec0740c7c14689593ff405d62f3111f9c326cc2d0 /src/modules/modAI.c
parentf760a8c01827d97affff6acc0ec666b30e26395f (diff)
fix _all_ warnings // used macro UNUSET
Diffstat (limited to 'src/modules/modAI.c')
-rw-r--r--src/modules/modAI.c20
1 files changed, 20 insertions, 0 deletions
diff --git a/src/modules/modAI.c b/src/modules/modAI.c
index f084933..63b94c8 100644
--- a/src/modules/modAI.c
+++ b/src/modules/modAI.c
@@ -48,6 +48,9 @@ alternative_t *cloneAlternative(alternative_t * p, int route, int x, int y)
assert(p != NULL);
+ UNUSET(x);
+ UNUSET(y);
+
new = newAlternative(route, p->x, p->y);
new->first = p->first;
new->step = p->step;
@@ -118,6 +121,7 @@ void destroyAlternative(alternative_t * p)
static void cmd_ai(char *line)
{
+ UNUSET(line);
}
int init(export_fce_t * p)
@@ -130,6 +134,11 @@ int init(export_fce_t * p)
#ifndef PUBLIC_SERVER
int draw(int x, int y, int w, int h)
{
+ UNUSET(x);
+ UNUSET(y);
+ UNUSET(w);
+ UNUSET(h);
+
return 0;
}
#endif
@@ -158,6 +167,8 @@ static void shotTux(arena_t * arena, tux_t * tux_ai, tux_t * tux_rival)
int x_rival, y_rival;
int w, h;
+ UNUSET(arena);
+
export_fce->fce_tux_get_proportion(tux_ai, &x_ai, &y_ai, &w, &h);
export_fce->fce_tux_get_proportion(tux_rival, &x_rival, &y_rival, &w, &h);
@@ -325,6 +336,9 @@ static void tux_eventAI(tux_t * tux)
static void action_tuxAI(space_t * space, tux_t * tux, void *p)
{
+ UNUSET(space);
+ UNUSET(p);
+
if (tux->control == TUX_CONTROL_AI && tux->status == TUX_STATUS_ALIVE) {
tux_eventAI(tux);
}
@@ -380,6 +394,11 @@ int event()
int isConflict(int x, int y, int w, int h)
{
+ UNUSET(x);
+ UNUSET(y);
+ UNUSET(w);
+ UNUSET(h);
+
return 0;
}
@@ -391,6 +410,7 @@ void cmdArena(char *line)
void recvMsg(char *msg)
{
+ UNUSET(msg);
}
int destroy()