Hello,
thanks, I push a patch for it, can you try with latest master branch and report if you compiler is happy now?
I wonder why clang never reported the warning for this situation.
Cheers, Daniel
On 27/10/15 09:03, Yasin CANER wrote:
Hello; There is a gcc warning for t_cancel.c at 46 line.-centos 6.6 -2.6.32-504.23.4.el6.x86_64
t_cancel.c:46: warning: missing braces around initializer t_cancel.c:46: warning: (near initialization for â_cancel_reason_map[0]â)
i changed code to like below but couldn't fixed
typedef struct cancel_reason_map { int code; str text; } cancel_reason_map_t;
static cancel_reason_map_t _cancel_reason_map[] = { {200, str_init("Answered elsewhere")}, {0, 0} };
t_cancel.c:47: warning: missing braces around initializer t_cancel.c:47: warning: (near initialization for â_cancel_reason_map[1].textâ)
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list sr-users@lists.sip-router.org http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
Hello Daniel. it is ok , there is no warning about it Thanks.
-- View this message in context: http://sip-router.1086192.n5.nabble.com/gcc-warning-for-t-cancel-tp142621p14... Sent from the Users mailing list archive at Nabble.com.
Hello, ok, thank for reporting back!
Daniel
On 27/10/15 12:26, ycaner wrote:
Hello Daniel. it is ok , there is no warning about it Thanks.
-- View this message in context: http://sip-router.1086192.n5.nabble.com/gcc-warning-for-t-cancel-tp142621p14... Sent from the Users mailing list archive at Nabble.com.
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list sr-users@lists.sip-router.org http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users