Jump to content
  • 0

Pc.c - Warning delete_timer, add_timer


Miemie

Question


  • Group:  Members
  • Topic Count:  10
  • Topics Per Day:  0.00
  • Content Count:  22
  • Reputation:   0
  • Joined:  04/30/16
  • Last Seen:  

Hi, how to solve this? I got from logs after compiled the server. (CentOS)

CC	pc.c
pc.c: In function 'pc_inventory_rental_clear':
pc.c:503: warning: passing argument 2 of 'delete_timer' from incompatible pointer type
../common/timer.h:45: note: expected 'TimerFunc' but argument is of type 'bool (*)(int, unsigned int, int, intptr_t)'
pc.c: In function 'pc_inventory_rentals':
pc.c:536: warning: passing argument 2 of 'add_timer' from incompatible pointer type
../common/timer.h:42: note: expected 'TimerFunc' but argument is of type 'bool (*)(int, unsigned int, int, intptr_t)'
pc.c: In function 'pc_inventory_rental_add':
pc.c:559: warning: passing argument 2 of 'add_timer' from incompatible pointer type
../common/timer.h:42: note: expected 'TimerFunc' but argument is of type 'bool (*)(int, unsigned int, int, intptr_t)'
pc.c:562: warning: passing argument 2 of 'add_timer' from incompatible pointer type
../common/timer.h:42: note: expected 'TimerFunc' but argument is of type 'bool (*)(int, unsigned int, int, intptr_t)'
pc.c: In function 'do_init_pc':
pc.c:12051: warning: passing argument 1 of 'add_timer_func_list' from incompatible pointer type
../common/timer.h:50: note: expected 'TimerFunc' but argument is of type 'bool (*)(int, unsigned int, int, intptr_t)'
Edited by Miemie
Link to comment
Share on other sites

5 answers to this question

Recommended Posts

  • 0

  • Group:  Members
  • Topic Count:  34
  • Topics Per Day:  0.01
  • Content Count:  386
  • Reputation:   38
  • Joined:  04/28/13
  • Last Seen:  

Its just a warning, if you dont have errors, you dont have to care about that.

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  10
  • Topics Per Day:  0.00
  • Content Count:  22
  • Reputation:   0
  • Joined:  04/30/16
  • Last Seen:  

Oh, i afraid if this may cause memory leaks. Map crashed several times. Can this be the caused?

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  34
  • Topics Per Day:  0.01
  • Content Count:  386
  • Reputation:   38
  • Joined:  04/28/13
  • Last Seen:  

Your map server have been crashing since you started the server?

Did you edit something in the source to get this warnings or you got them always?

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  10
  • Topics Per Day:  0.00
  • Content Count:  22
  • Reputation:   0
  • Joined:  04/30/16
  • Last Seen:  

I didn't change any in src folder except for player max level. Map server didn't crash right away after started the server, it tooks several hours until it crashed. And I'm not so sure which caused it to crash. But it's okay if this "warning" is not the reason for the map server to crash. Ty ;)

Link to comment
Share on other sites

  • 0

  • Group:  Forum Moderator
  • Topic Count:  93
  • Topics Per Day:  0.02
  • Content Count:  10015
  • Reputation:   2348
  • Joined:  10/28/11
  • Last Seen:  

perhaps you missed some update patch ?? make sure you updated to latest patches.

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...