diff options
author | Haru <haru@dotalux.com> | 2018-06-29 06:32:55 +0200 |
---|---|---|
committer | Haru <haru@dotalux.com> | 2018-07-01 21:09:26 +0200 |
commit | a6292d5eaf34e39ce8dcb7c8a260cc1772eb536c (patch) | |
tree | 5ba4fbd5fcfe667a26101fa3e72e0e5529a6c336 /src/map/status.c | |
parent | a675e06c38ec4e31a2758435a582b58a2199cfc4 (diff) | |
download | hercules-a6292d5eaf34e39ce8dcb7c8a260cc1772eb536c.tar.gz hercules-a6292d5eaf34e39ce8dcb7c8a260cc1772eb536c.tar.bz2 hercules-a6292d5eaf34e39ce8dcb7c8a260cc1772eb536c.tar.xz hercules-a6292d5eaf34e39ce8dcb7c8a260cc1772eb536c.zip |
Fix some warnings caused by static functions defined and unused
Signed-off-by: Haru <haru@dotalux.com>
Diffstat (limited to 'src/map/status.c')
-rw-r--r-- | src/map/status.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/map/status.c b/src/map/status.c index f949efd9f..2bd3700b3 100644 --- a/src/map/status.c +++ b/src/map/status.c @@ -4459,7 +4459,12 @@ static unsigned short status_base_atk(const struct block_list *bl, const struct static unsigned short status_base_matk_min(const struct status_data *st) { nullpo_ret(st); +#ifdef RENEWAL + Assert_ret(0); + return 0; +#else // not RENEWAL return st->int_ + (st->int_ / 7) * (st->int_ / 7); +#endif // RENEWAL } static unsigned short status_base_matk_max(const struct status_data *st) @@ -4485,6 +4490,7 @@ static unsigned short status_base_matk(struct block_list *bl, const struct statu return st->int_ + (st->int_ / 2) + (st->dex / 5) + (st->luk / 3) + (level / 4); } #else + Assert_ret(0); return 0; #endif } @@ -13786,8 +13792,6 @@ void status_defaults(void) status->read_job_db_sub = status_read_job_db_sub; status->set_sc = status_set_sc; status->copy = status_copy; -#ifndef RENEWAL status->base_matk_min = status_base_matk_min; -#endif // RENEWAL status->base_matk_max = status_base_matk_max; } |