debian jessie c compiler complains about these in
kamailio 4.4:
CC (gcc) [sip-proxy] mem/tlsf_malloc.o
mem/tlsf_malloc.c: In function 'tlsf_malloc_init_pkg_manager':
mem/tlsf_malloc.c:1353:16: warning: assignment from incompatible pointer type
ma.xmalloc = tlsf_malloc;
Hi,
is this happening on a x86 32 bits machine? This issue was pointed out already
by Ovidu Sas:
<http://lists.sip-router.org/pipermail/sr-dev/2016-January/thread.html#32757>,
but I had no 32 bits machine to test this on, and also no idea why it does not
work (I see no error message on my 64 bits Debian Jessie).
All I see is that we are assigning a
void* (*)(tlsf_t, size_t)
to a
void* (*)(void* , unsigned long)
yet tlsf_t is defined as `typedef void* tlsf_t`, and size_t and unsigned long
have the same width on this architecture...
Do compiling with clang generates an error too? If yes, is the error message
more specific about the issue?
Any other idea?
--
Camille
_________________________________________________________________________________________________________________________
Ce message et ses pieces jointes peuvent contenir des informations confidentielles ou
privilegiees et ne doivent donc
pas etre diffuses, exploites ou copies sans autorisation. Si vous avez recu ce message par
erreur, veuillez le signaler
a l'expediteur et le detruire ainsi que les pieces jointes. Les messages electroniques
etant susceptibles d'alteration,
Orange decline toute responsabilite si ce message a ete altere, deforme ou falsifie.
Merci.
This message and its attachments may contain confidential or privileged information that
may be protected by law;
they should not be distributed, used or copied without authorisation.
If you have received this email in error, please notify the sender and delete this message
and its attachments.
As emails may be altered, Orange is not liable for messages that have been modified,
changed or falsified.
Thank you.