summaryrefslogtreecommitdiff
path: root/src/emap/map.c
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2016-04-28 03:56:12 +0300
committerAndrei Karas <akaras@inbox.ru>2016-04-28 03:56:12 +0300
commit447787839e492410611ebe16d01fd5e1ae52e045 (patch)
tree0df52644e225f65e2d23f358dc4db5906c1595be /src/emap/map.c
parentd37fe74804b94065259703509b4b3dc3f53c30a5 (diff)
downloadevol-hercules-447787839e492410611ebe16d01fd5e1ae52e045.tar.gz
evol-hercules-447787839e492410611ebe16d01fd5e1ae52e045.tar.bz2
evol-hercules-447787839e492410611ebe16d01fd5e1ae52e045.tar.xz
evol-hercules-447787839e492410611ebe16d01fd5e1ae52e045.zip
Fix different warnings.
Diffstat (limited to 'src/emap/map.c')
-rw-r--r--src/emap/map.c12
1 files changed, 9 insertions, 3 deletions
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();