[SR-Users] 4.4 compiler warnings on debian jessie

Ovidiu Sas sip.nslu at gmail.com
Wed May 11 18:54:13 CEST 2016


If you have a patch, I can test it for you.

-ovidiu
On May 11, 2016 10:56, <camille.oudot at orange.com> wrote:

> > 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.
>
>
> _______________________________________________
> SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
> sr-users at lists.sip-router.org
> http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sip-router.org/pipermail/sr-users/attachments/20160511/b99bc8fc/attachment.html>


More information about the sr-users mailing list