diff options
author | Andrei Karas <akaras@inbox.ru> | 2016-04-28 03:56:12 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2016-04-28 03:56:12 +0300 |
commit | 447787839e492410611ebe16d01fd5e1ae52e045 (patch) | |
tree | 0df52644e225f65e2d23f358dc4db5906c1595be /src/emap/script.c | |
parent | d37fe74804b94065259703509b4b3dc3f53c30a5 (diff) | |
download | plugin-447787839e492410611ebe16d01fd5e1ae52e045.tar.gz plugin-447787839e492410611ebe16d01fd5e1ae52e045.tar.bz2 plugin-447787839e492410611ebe16d01fd5e1ae52e045.tar.xz plugin-447787839e492410611ebe16d01fd5e1ae52e045.zip |
Fix different warnings.
Diffstat (limited to 'src/emap/script.c')
-rw-r--r-- | src/emap/script.c | 20 |
1 files changed, 14 insertions, 6 deletions
diff --git a/src/emap/script.c b/src/emap/script.c index 178b99a..5c635b0 100644 --- a/src/emap/script.c +++ b/src/emap/script.c @@ -20,7 +20,7 @@ #define getExt2() \ TBL_NPC *nd = NULL; \ - int num = reference_uid(script->add_str(".id"), 0); \ + int num = (int)reference_uid(script->add_str(".id"), 0); \ int id = (int)i64db_iget(n->vars, num); \ if (!id) \ id = st->oid; \ @@ -33,7 +33,7 @@ #define getExt2Ret(r) \ TBL_NPC *nd = NULL; \ - int num = reference_uid(script->add_str(".id"), 0); \ + int num = (int)reference_uid(script->add_str(".id"), 0); \ int id = (int)i64db_iget(n->vars, num); \ if (!id) \ id = st->oid; \ @@ -46,7 +46,7 @@ #define getExt1() \ TBL_NPC *nd = NULL; \ - int num = reference_uid(script->add_str(".id"), 0); \ + int num = (int)reference_uid(script->add_str(".id"), 0); \ int id = (int)i64db_iget(n->vars, num); \ if (!id) \ id = st->oid; \ @@ -56,7 +56,7 @@ #define getExt1Return(r) \ TBL_NPC *nd = NULL; \ - int num = reference_uid(script->add_str(".id"), 0); \ + int num = (int)reference_uid(script->add_str(".id"), 0); \ int id = (int)i64db_iget(n->vars, num); \ if (!id) \ id = st->oid; \ @@ -111,7 +111,11 @@ void escript_load_translations(void) hookStop(); } -void eset_reg_npcscope_num(struct script_state* st, struct reg_db *n, int64 *num, const char* name, int *val) +void eset_reg_npcscope_num(struct script_state* st, + struct reg_db *n, + int64 *num __attribute__ ((unused)), + const char* name, + int *val) { if (!strcmp(name, ".lang")) { @@ -297,7 +301,11 @@ int eget_val_npcscope_num(struct script_state* st, struct reg_db *n, struct scri return 0; } -void eset_reg_npcscope_str(struct script_state* st, struct reg_db *n, int64 *num, const char* name, const char *str) +void eset_reg_npcscope_str(struct script_state* st, + struct reg_db *n, + int64 *num __attribute__ ((unused)), + const char* name, + const char *str) { if (!strcmp(name, ".map$")) { |