Jump to content
  • 0

Compilation Warning (eAmod)


Question

Posted (edited)

source:

static int bg_team_db_reset(DBKey key, void *data, va_list ap)
{
struct battleground_data *bg = (struct battleground_data *)data;
bg_team_clean(bg->bg_id,false);
return 0;
}

static int queue_db_final(DBKey key, void *data, va_list ap)
{
struct queue_data *qd = (struct queue_data *)data;
queue_members_clean(qd); // Unlink all queue members
return 0;
}

void bg_reload(void)
{ // @reloadscript
bg_team_db->destroy(bg_team_db,bg_team_db_reset);	//line 878
queue_db->destroy(queue_db, queue_db_final);		//line 879

bg_team_db = idb_alloc(DB_OPT_RELEASE_DATA);
queue_db = idb_alloc(DB_OPT_RELEASE_DATA);

bg_team_counter = 0;
queue_counter = 0;
}

void do_final_battleground(void)
{
bg_team_db->destroy(bg_team_db, NULL);
queue_db->destroy(queue_db, queue_db_final);		//line 891
}

Compilation (Debian):

battleground.c: In function 'bg_reload':
battleground.c:878: warning: passing argument 2 of 'bg_team_db->destroy' from incompatible pointer type
battleground.c:878: note: expected 'DBApply' but argument is of type 'int (*)(union DBKey,  void *, struct __va_list_tag *)'
battleground.c:879: warning: passing argument 2 of 'queue_db->destroy' from incompatible pointer type
battleground.c:879: note: expected 'DBApply' but argument is of type 'int (*)(union DBKey,  void *, struct __va_list_tag *)'
battleground.c: In function 'do_final_battleground':
battleground.c:891: warning: passing argument 2 of 'queue_db->destroy' from incompatible pointer type
battleground.c:891: note: expected 'DBApply' but argument is of type 'int (*)(union DBKey,  void *, struct __va_list_tag *)'

At shutdown:

[Warning]: ers::destroy : 14498 entries missing (possible double free), continuing destruction (entry size=32).

How to fix it?

Edited by wend

2 answers to this question

Recommended Posts

Posted

contact zephyrus his eamod has been totally modded the source code is his own codes and its not the same even if its eAthena, rAthena or 3CeaM his code is hard to edit or hard to get simple he is the one who can do that thing

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...