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