xEasycore / ExtendedBG

Battleground Extended (eAmod) for rAthena emulator.
11 stars 22 forks source link

Compiling error #6

Open bfpkiller opened 5 years ago

bfpkiller commented 5 years ago

i get these errors when compiling, using diff 9 and one of the latest rathena

battleground.cpp: In function ‘void bg_block_skill_status(battleground_data*, int)’: battleground.cpp:133:138: warning: format ‘%i’ expects argument of type ‘int’, but argument 5 has type ‘t_tick {aka long int}’ [-Wformat=] sprintf(output, "%s : Cannot use team skill %s. %I64i seconds remaining................", bg->g->name, skill_get_desc(skillnum), seconds); ^ CXX buyingstore.cpp CXX cashshop.cpp CXX channel.cpp CXX chat.cpp CXX chrif.cpp CXX clan.cpp CXX clif.cpp clif.cpp: In function ‘void clif_name(block_list*, block_list*, send_target)’: clif.cpp:9660:7: error: jump to case label [-fpermissive] case BL_HOM: ^ clif.cpp:9595:18: note: crosses initialization of ‘guild* g’ struct guild *g = NULL; ^ clif.cpp:9594:23: note: crosses initialization of ‘party_data* p’ struct party_data *p = NULL; ^ clif.cpp:9593:29: note: crosses initialization of ‘map_session_data* sd’ struct map_session_data *sd = (struct map_session_data *)bl; ^ clif.cpp:9663:7: error: jump to case label [-fpermissive] case BL_MER: ^ clif.cpp:9595:18: note: crosses initialization of ‘guild* g’ struct guild *g = NULL; ^ clif.cpp:9594:23: note: crosses initialization of ‘party_data* p’ struct party_data *p = NULL; ^ clif.cpp:9593:29: note: crosses initialization of ‘map_session_data* sd’ struct map_session_data *sd = (struct map_session_data *)bl; ^ clif.cpp:9666:7: error: jump to case label [-fpermissive] case BL_PET: ^ clif.cpp:9595:18: note: crosses initialization of ‘guild* g’ struct guild *g = NULL; ^ clif.cpp:9594:23: note: crosses initialization of ‘party_data* p’ struct party_data *p = NULL; ^ clif.cpp:9593:29: note: crosses initialization of ‘map_session_data* sd’ struct map_session_data *sd = (struct map_session_data *)bl; ^ clif.cpp:9669:7: error: jump to case label [-fpermissive] case BL_NPC: ^ clif.cpp:9595:18: note: crosses initialization of ‘guild* g’ struct guild *g = NULL; ^ clif.cpp:9594:23: note: crosses initialization of ‘party_data* p’ struct party_data *p = NULL; ^ clif.cpp:9593:29: note: crosses initialization of ‘map_session_data* sd’ struct map_session_data *sd = (struct map_session_data *)bl; ^ clif.cpp:9672:7: error: jump to case label [-fpermissive] case BL_MOB: ^ clif.cpp:9595:18: note: crosses initialization of ‘guild* g’ struct guild *g = NULL; ^ clif.cpp:9594:23: note: crosses initialization of ‘party_data* p’ struct party_data *p = NULL; ^ clif.cpp:9593:29: note: crosses initialization of ‘map_session_data* sd’ struct map_session_data *sd = (struct map_session_data *)bl; ^ clif.cpp:9718:7: error: jump to case label [-fpermissive] case BL_CHAT: //FIXME: Clients DO request this... what should be done about it? The chat's title may not fit... [Skotlex] ^ clif.cpp:9595:18: note: crosses initialization of ‘guild* g’ struct guild *g = NULL; ^ clif.cpp:9594:23: note: crosses initialization of ‘party_data* p’ struct party_data *p = NULL; ^ clif.cpp:9593:29: note: crosses initialization of ‘map_session_data* sd’ struct map_session_data *sd = (struct map_session_data *)bl; ^ clif.cpp:9722:7: error: jump to case label [-fpermissive] case BL_ELEM: ^ clif.cpp:9595:18: note: crosses initialization of ‘guild* g’ struct guild *g = NULL; ^ clif.cpp:9594:23: note: crosses initialization of ‘party_data* p’ struct party_data *p = NULL; ^ clif.cpp:9593:29: note: crosses initialization of ‘map_session_data* sd’ struct map_session_data *sd = (struct map_session_data *)bl; ^ clif.cpp:9725:2: error: jump to case label [-fpermissive] default: ^ clif.cpp:9595:18: note: crosses initialization of ‘guild* g’ struct guild *g = NULL; ^ clif.cpp:9594:23: note: crosses initialization of ‘party_data* p’ struct party_data *p = NULL; ^ clif.cpp:9593:29: note: crosses initialization of ‘map_session_data* sd’ struct map_session_data *sd = (struct map_session_data *)bl; ^ clif.cpp:9740:1: error: a function-definition is not allowed here before ‘{’ token { ^ clif.cpp:21413:1: error: expected ‘}’ at end of input } ^