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
--
Daniel-Constantin Mierla
http://twitter.com/#!/miconda - http://www.linkedin.com/in/miconda
Book: SIP Routing With Kamailio - http://www.asipto.com
Kamailio Advanced Training, Nov 30-Dec 2, Berlin - http://asipto.com/kat