From 447787839e492410611ebe16d01fd5e1ae52e045 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Thu, 28 Apr 2016 03:56:12 +0300 Subject: Fix different warnings. --- src/emap/map.c | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) (limited to 'src/emap/map.c') diff --git a/src/emap/map.c b/src/emap/map.c index 428853d..c85a831 100644 --- a/src/emap/map.c +++ b/src/emap/map.c @@ -62,7 +62,7 @@ struct mapcell2 }; int emap_addflooritem_post(int retVal, - const struct block_list *bl, + const struct block_list *bl __attribute__ ((unused)), struct item *item, int *amount __attribute__ ((unused)), int16 *m __attribute__ ((unused)), @@ -169,7 +169,7 @@ void emap_online_list(int fd) } dbi_destroy(iter); - send_online_list(fd, buf, ptr - buf); + send_online_list(fd, buf, (unsigned int)(ptr - buf)); aFree(buf); } @@ -397,7 +397,13 @@ void emap_setgatcell(int16 *mPtr, int16 *xPtr, int16 *yPtr, int *gatPtr) hookStop(); } -bool emap_iwall_set(int16 *m, int16 *x, int16 *y, int *size, int8 *dir, bool *shootable, const char* wall_name) +bool emap_iwall_set(int16 *m __attribute__ ((unused)), + int16 *x __attribute__ ((unused)), + int16 *y __attribute__ ((unused)), + int *size __attribute__ ((unused)), + int8 *dir __attribute__ ((unused)), + bool *shootable __attribute__ ((unused)), + const char* wall_name __attribute__ ((unused))) { ShowError("Unsupported set wall function\n"); hookStop(); -- cgit v1.2.3-70-g09d2