From ed516154d881e1948f5ff8888c3d5de64cfbe8fc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stefan=20B=C3=BChler?= Date: Mon, 12 Jun 2017 12:47:01 +0200 Subject: [PATCH] fix some warnings --- announce.c | 2 +- game.c | 13 +++++++------ gfx.c | 8 ++++---- gfx.h | 26 +++++++++++++------------- list.c | 2 -- sound.c | 4 ++-- 6 files changed, 27 insertions(+), 28 deletions(-) diff --git a/announce.c b/announce.c index 12c353d..ce3e63b 100644 --- a/announce.c +++ b/announce.c @@ -279,7 +279,7 @@ int searchgames(void) { avahi_threaded_poll_lock(threaded_poll); - if (NULL == (browser = avahi_service_browser_new(client, AVAHI_IF_UNSPEC, AVAHI_PROTO_UNSPEC, SERVICE_TYPE, NULL, 0, browse_callback, &gameversion))) { + if (NULL == (browser = avahi_service_browser_new(client, AVAHI_IF_UNSPEC, AVAHI_PROTO_UNSPEC, SERVICE_TYPE, NULL, 0, browse_callback, NULL))) { fprintf(stderr, "Failed to create service browser: %s\n", avahi_strerror(avahi_client_errno(client))); avahi_threaded_poll_unlock(threaded_poll); return 0; diff --git a/game.c b/game.c index b57c5a0..ab27fda 100644 --- a/game.c +++ b/game.c @@ -468,11 +468,12 @@ static void drawbombs(void) { static void drawflames(void) { flame *fl; int xpos,ypos; - int color; + /* no player specific flame sprites yet */ + /* int color; */ int fig; list_for_each_entry(fl, &activeflames, list) { - color=fl->owner->color; + /* color=fl->owner->color; */ xpos=tovideox(fl->xpos); ypos=tovideoy(fl->ypos); fig=(fl->timer*10)/FLAMELIFE; @@ -747,9 +748,9 @@ static void applybonus(player *pl,bonustile *bonus) { } static void doplayer(player *pl) { - int last; + /* int last; */ int color; - int speed; + /* int speed; */ int px,py; int there; int flags; @@ -763,9 +764,9 @@ static void doplayer(player *pl) { flags=pl->flags; if(flags&FLG_DEAD) return; color=pl->color; - last=pl->doing; + /* last=pl->doing; */ pl->doing=what; - speed=pl->speed; + /* speed=pl->speed; */ px=screentoarrayx(pl->xpos); py=screentoarrayy(pl->ypos); there=field[py][px]; diff --git a/gfx.c b/gfx.c index 42d8d6c..3eb0c14 100644 --- a/gfx.c +++ b/gfx.c @@ -158,12 +158,12 @@ static void gfxfetchsingle(figure *fig,gfxset *gs,int sourcex,int sourcey,int si { uchar *p,*p2; int dx,dy; -uchar *map1; +/* uchar *map1; */ int gswidth; int minx,miny,maxx,maxy; int tx,ty; - map1=gs->gs_inout; + /* map1=gs->gs_inout; */ gswidth=gs->gs_xsize; p=gs->gs_pic+sourcex+gswidth*sourcey; minx=miny=maxx=maxy=-1; @@ -480,7 +480,7 @@ int checkbuttondown(int button) return buttondown & (1<