From a6292d5eaf34e39ce8dcb7c8a260cc1772eb536c Mon Sep 17 00:00:00 2001 From: Haru Date: Fri, 29 Jun 2018 06:32:55 +0200 Subject: Fix some warnings caused by static functions defined and unused Signed-off-by: Haru --- src/map/status.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'src/map/status.c') 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; } -- cgit v1.2.3-60-g2f50