[sr-dev] Kamailio mohqueu warning
Daniel-Constantin Mierla
miconda at gmail.com
Wed Mar 24 10:26:04 CET 2021
Hello,
compiling the latest version of Kamailio results in a warning for
mohqueue module:
CC (gcc) [M mohqueue.so] mohq_funcs.o
mohq_funcs.c:225:23: warning: incompatible pointer types passing
'tm_cell_t *' (aka 'struct cell *') to parameter of type 'struct sip_msg *'
[-Wincompatible-pointer-types]
if (ptm->t_release (ptcell) < 0)
I noticed you pushed some changes recently, likely the warning was
introduced by them, not noticing it before. Anyhow, it seems something
that should be reviewed and fixed, otherwise may result in a crash by
passing incorrect structure pointer.
Cheers,
Daniel
--
Daniel-Constantin Mierla -- www.asipto.com
www.twitter.com/miconda -- www.linkedin.com/in/miconda
Funding: https://www.paypal.me/dcmierla
More information about the sr-dev
mailing list