summaryrefslogtreecommitdiff
path: root/src/emap/status.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/status.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/status.c')
-rw-r--r--src/emap/status.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/emap/status.c b/src/emap/status.c
index 2463254..46b705d 100644
--- a/src/emap/status.c
+++ b/src/emap/status.c
@@ -52,7 +52,7 @@ void estatus_set_viewdata_post(struct block_list *bl,
if (npc->u.scr.script)
{
// here some magic to set npc local variable .id to bl.id
- const int num = reference_uid(script->add_str(".id"), 0);
+ const int num = (int)reference_uid(script->add_str(".id"), 0);
if (!npc->u.scr.script->local.vars)
npc->u.scr.script->local.vars = i64db_alloc(DB_OPT_RELEASE_DATA);
i64db_iput(npc->u.scr.script->local.vars, num, npc->bl.id);
@@ -135,8 +135,8 @@ int estatus_calc_pc_additional(struct map_session_data* sd,
unsigned short estatus_calc_speed_post(unsigned short retVal,
struct block_list *bl,
- struct status_change *sc,
- int *speed)
+ struct status_change *sc __attribute__ ((unused)),
+ int *speed __attribute__ ((unused)))
{
return horse_add_speed_bonus(BL_CAST(BL_PC, bl), retVal);
}