[SR-Users] gcc warning for t_cancel

Daniel-Constantin Mierla miconda at gmail.com
Tue Oct 27 11:28:58 CET 2015


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â)
>
> -- 
> <http://www.netgsm.com.tr>
>
>
> _______________________________________________
> 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

-- 
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

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sip-router.org/pipermail/sr-users/attachments/20151027/01f30b05/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: image/jpeg
Size: 38209 bytes
Desc: not available
URL: <http://lists.sip-router.org/pipermail/sr-users/attachments/20151027/01f30b05/attachment.jpe>


More information about the sr-users mailing list