CC (clang) [M cdp.so] authstatemachine.o
authstatemachine.c:748:3: warning: implicit conversion from 'int' to
'char' changes value from 209 to -47 [-Wconstant-conversion]
set_4bytes(x, AAA_SUCCESS);
^~~~~~~~~~~~~~~~~~~~~~~~~~
./diameter.h:77:44: note: expanded from macro 'set_4bytes'
(_b)[2]=((_v)&0x0000ff00)>>8;(_b)[3]=((_v)&0x000000ff);}
~ ~~~~^~~~~~~~~~~
authstatemachine.c:758:3: warning: implicit conversion from 'int' to
'char' changes value from 209 to -47 [-Wconstant-conversion]
set_4bytes(x, AAA_SUCCESS);
^~~~~~~~~~~~~~~~~~~~~~~~~~
./diameter.h:77:44: note: expanded from macro 'set_4bytes'
(_b)[2]=((_v)&0x0000ff00)>>8;(_b)[3]=((_v)&0x000000ff);}
~ ~~~~^~~~~~~~~~~
ocs_avp_helper.c:329:3: warning: implicit conversion
from 'int' to 'char' changes value from 128 to -128
[-Wconstant-conversion]
set_4bytes(x, 86400);
^~~~~~~~~~~~~~~~~~~~
./../cdp/diameter.h:77:44: note: expanded from macro 'set_4bytes'
(_b)[2]=((_v)&0x0000ff00)>>8;(_b)[3]=((_v)&0x000000ff);}
~ ~~~~^~~~~~~~~~~
You can view, comment
on, or merge this pull request online at:
https://github.com/kamailio/kamailio/pull/1497
-- Commit Summary --
* cdp: fix compilation warning
-- File Changes --
M src/modules/cdp/diameter.h (2)
-- Patch Links --
https://github.com/kamailio/kamailio/pull/1497.patch
https://github.com/kamailio/kamailio/pull/1497.diff
--
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/kamailio/kamailio/pull/1497