Jump to content
  • 0

Compilation Warning (eAmod)


wend

Question


  • Group:  Members
  • Topic Count:  5
  • Topics Per Day:  0.00
  • Content Count:  13
  • Reputation:   0
  • Joined:  03/07/12
  • Last Seen:  

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
Link to comment
Share on other sites

2 answers to this question

Recommended Posts


  • Group:  Members
  • Topic Count:  26
  • Topics Per Day:  0.01
  • Content Count:  2244
  • Reputation:   182
  • Joined:  11/19/11
  • Last Seen:  

ask on eAmod forums, or give us the source

seems to be a conflict with one of the eA updates from before though

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  33
  • Topics Per Day:  0.01
  • Content Count:  231
  • Reputation:   24
  • Joined:  12/18/11
  • Last Seen:  

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

Link to comment
Share on other sites

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.

×
×
  • Create New...